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

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

本文只是python-wordpress-xmlrpc的安装使用,在使用本文之前,还需要安装Python和Wordpress。

 

安装适用WordPress的Python第三方模块

要实现对WordPress文章的发布,需要使用WordPress的xmlrpc接口,对于python来讲,有一个专门的第三方模 块专门实现了对这个接口的管理:python-wordpress-xmlrpc

安装方法:

  1. 使用管理员方式打开命令行,前提是Python已经安装。
  2. #命令行下用pip install 直接安装(pip install python‐wordpress‐xmlrpc)
  3. 安装过程(

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

本文由 泓源视野 作者:admin 发表,其版权均为 泓源视野 所有,文章内容系作者个人观点,不代表 泓源视野 对观点赞同或支持。如需转载,请注明文章来源。
17

发表评论

Protected with IP Blacklist CloudIP Blacklist Cloud
您是第8236599 位访客, 您的IP是:[44.192.107.255]