Python Wordpress Api Library
Project description
Python Wordpress Api Library
Pywordapi allows a simple way to get data in and out of WordPress over HTTP, using python and Wordpress REST API.
Installation
To install the Pywordapi package:
pip install pywordapi
Usage
Get posts
from pywordapi import wordpress
api_url = "https://demo.wp-api.org/"
api = wordpress.Wordpress(api_url)
results = api.get_posts()
Get categories
from pywordapi import wordpress
api_url = "https://demo.wp-api.org/"
api = wordpress.Wordpress(api_url)
results = api.get_categories()
Variable results will return instance of type dict
Using proxy
from pywordapi import wordpress
api_url = "https://demo.wp-api.org/"
proxy_url = "http://username:password@IP_ADDRESS:PORT"
api = wordpress.Wordpress(api_url, proxy_url)
results = api.get_posts()
Documentation
Changelog
1.0.0 (2019-06-21)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywordapi-1.0.6.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for pywordapi-1.0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92dd215037559eedb84b50df35e9be2581756f2391299b0a7ffb7e0426bd185f |
|
MD5 | ec4296d5ae121d676be30465f2c44daa |
|
BLAKE2b-256 | 9205a5d3b5f6ea7f483ff8073d42670ee49950cb9c1e323307d7f29caf0885c1 |