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.WpRest(api_url)
results = api.get_posts()
Get categories
from pywordapi import Pywordapi
api_url = "https://demo.wp-api.org/"
api = Pywordapi.WpRest(api_url)
results = api.get_categories()
Variable results will return instance of type list (of dict).
Using proxy
from pywordapi import Pywordapi
api_url = "https://demo.wp-api.org/"
proxy_url = "http://username:password@IP_ADDRESS:PORT"
api = Pywordapi.WpRest(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.9.tar.gz
(15.7 kB
view details)
Built Distribution
File details
Details for the file pywordapi-1.0.9.tar.gz
.
File metadata
- Download URL: pywordapi-1.0.9.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98e89049b73986c70664016baf516428334e9eca1460c52750cbc55f56116368 |
|
MD5 | 8c2707498a06724b1519a9ba6894d577 |
|
BLAKE2b-256 | 8284e657769a82e38af65c32a03d3fc9310b9cd02869f19cc05bc973becbfe54 |
File details
Details for the file pywordapi-1.0.9-py2.py3-none-any.whl
.
File metadata
- Download URL: pywordapi-1.0.9-py2.py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6ef718dad990ca1cb4b23ec7f31973dff95775c3cbfa42f34b0388933ac4c67 |
|
MD5 | c8809e76f0603fd04c1fc0f755a933e1 |
|
BLAKE2b-256 | d81b596e6f823c69bc36b1b70ee186f7e9204ff59adb41e6e6697731bd64d383 |