V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2019-01-17 16:35:26 +08:00 · 1882 次点击
    这是一个创建于 1918 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    2 条回复    2019-01-17 16:58:48 +08:00
    luosiding
        1
    luosiding  
       2019-01-17 16:54:44 +08:00
    获取发送文章的 API 然后 python 模拟就行了
    martyartrt1
        2
    martyartrt1  
       2019-01-17 16:58:48 +08:00
    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

    自己去研究,自己写呀。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5303 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:06 · PVG 17:06 · LAX 02:06 · JFK 05:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.