Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/charlax/wordpresslib
Wordpresslib is a wrapper to post to a Wordpress blog in Python. Started by Michele Ferretti. This version adds support for tags (keywords).
https://github.com/charlax/wordpresslib
Last synced: about 2 months ago
JSON representation
Wordpresslib is a wrapper to post to a Wordpress blog in Python. Started by Michele Ferretti. This version adds support for tags (keywords).
- Host: GitHub
- URL: https://github.com/charlax/wordpresslib
- Owner: charlax
- License: lgpl-2.1
- Created: 2011-03-04T19:57:30.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T04:00:57.000Z (almost 4 years ago)
- Last Synced: 2024-07-24T13:59:30.522Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 53
- Watchers: 4
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
WordPress Python Library
========================⚠️ **This library is not maintained anymore**
A simple python library for WordPress (XML-RPC interface).
The following methods are supported:
* Publishing new post (title, body, tags, categories, custom fields…)
* Editing old post
* Publishing draft post
* Deleting post
* Changing post categories
* Getting blog and user informations
* Upload multimedia files like movies or photos
* Getting last recents post
* Getting last post
* Getting Trackbacks of post
* Getting Pingbacks of postExample
=======import wordpresslib
url = "http://www.mysite.com/wordpress/xmlrpc.php"
wp = wordpresslib.WordPressClient(url, 'username', 'password')
wp.selectBlog(0)
post = wordpresslib.WordPressPost()
post.title = 'Title'
post.description = 'Content'
post.tags = ["wordpress", "lib", "python"]
# Set to False to save as a draft
idPost = wp.newPost(post, True)Contributing
============Very happy to have contributions to this project. Please write tests for any new features and always ensure the current tests pass.
License: GNU/GPL
Thanks
======This project has been started by Michele Ferretti in 2005.
Original project was here:
* http://code.google.com/p/wordpress-library/
* http://www.blackbirdblog.it/progetti/wordpress-library#english