python实现WordPress文章发布-环境配置与安装

本文只是python-wordpress-xmlrpc的安装使用,在使用本文之前,还需要安装Python和Wordpress。
安装适用WordPress的Python第三方模块
要实现对WordPress文章的发布,需要使用WordPress的xmlrpc接口,对于python来讲,有一个专门的第三方模 块专门实现了对这个接口的管理:python-wordpress-xmlrpc
安装方法:
- 使用管理员方式打开命令行,前提是Python已经安装。
- #命令行下用pip install 直接安装(pip install python‐wordpress‐xmlrpc)
- 安装过程(
C:\WINDOWS\system32>pip install python-wordpress-xmlrpc
Collecting python-wordpress-xmlrpc
Downloading python-wordpress-xmlrpc-2.3.zip (19 kB)
Using legacy setup.py install for python-wordpress-xmlrpc, since package ‘wheel’ is not installed.
Installing collected packages: python-wordpress-xmlrpc
Running setup.py install for python-wordpress-xmlrpc … done
Successfully installed python-wordpress-xmlrpc-2.3)
相关文档地址:http://python-wordpress-xmlrpc.readthedocs.io/en/latest/ref/client.html