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 Pywordapi
api_url = "https://demo.wp-api.org/"
api = Pywordapi(api_url)
results = api.get_posts()
Get categories
from pywordapi import Pywordapi
api_url = "https://demo.wp-api.org/"
api = Pywordapi(api_url)
results = api.get_categories()
Variable results will return instance of type dict
Using proxy
from pywordapi import Pywordapi
api_url = "https://demo.wp-api.org/"
proxy_url = "http://username:password@IP_ADDRESS:PORT"
api = Pywordapi(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.7.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for pywordapi-1.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d682707bffada87046e117d8043476c65d5074f473cc20af86c2e843c1db52b6 |
|
MD5 | 8aa2a1b8ada7453627133339305e9947 |
|
BLAKE2b-256 | c5125be6a6d4f37f335b720af189dd91b0984d86f8dc6ceb46ca818e56886d4d |