推荐学习书目
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 · 2772 views
    This topic created in 2715 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   ·   Solana   ·   5297 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 08:24 · PVG 16:24 · LAX 01:24 · JFK 04:24
    ♥ Do have faith in what you're doing.