Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

eyeseast/python-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python WordPress

A simple Python library for talking to Wordpress in JSON. This library relies on the WordPress JSON API plugin. This won't work if your WordPress site doesn't have the plugin installed.

Install:

$ pip install python-wordpress

Or git clone and python setup.py install and such.

Usage:

>>> from wordpress import WordPress
>>> wp = WordPress('http://example.com/blog/')
>>> posts = wp.get_recent_posts()

For now, this only covers the read portions of the API under the core controller. See the WordPress JSON API documentation for details.

Tests assume a WordPress blog running on MAMP at http://localhost:8888/wordpress, but you can change that by setting WORDPRESS_BLOG_URL as an environment variable, like so:

WORDPRESS_BLOG_URL=http://wordpress.local.host python test.py

About

A really simple Python client for WordPress JSON API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages