推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
xiaosheng
V2EX  ›  Python

wordpress 使用 Python 自动发布文章问题

  •  
  •   xiaosheng · Jan 17, 2019 · 2931 views
    This topic created in 2808 days ago, the information mentioned may be changed or developed.

    作为一个 python 萌新,需要使用 python 自动发布文章,需求如下:
    1.文章内容为纯图片形式,每篇文章所需图片均在不同文件夹下
    2.文章标题使用图片文件夹名称
    3.不要找我索取 VIP 谢谢

    特来请教各位有没有什么比较好的思路,或者操作方式

    2 replies  •  2019-01-17 16:58:48 +08:00
    luosiding
        1
    luosiding  
       Jan 17, 2019
    获取发送文章的 API 然后 python 模拟就行了
    martyartrt1
        2
    martyartrt1  
       Jan 17, 2019
    from wordpress_xmlrpc import Client, WordPressPost
    from wordpress_xmlrpc.compat import xmlrpc_client
    from wordpress_xmlrpc.methods import media
    from wordpress_xmlrpc.methods.posts import GetPosts,NewPost

    自己去研究,自己写呀。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2538 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:35 · PVG 17:35 · LAX 02:35 · JFK 05:35
    ♥ Do have faith in what you're doing.