⚠️ NOTE: This API Wrapper was hastily created to facilitate another higher-priority project. It is no longer under active development and is pretty ugly and wonky.
Python REST API wrapper for the Pulitzer Prize winning Politifact organisation's public API.
from politifact import Politifact
p = Politifact()
obama_related = p.statements().people('Barack Obama')
for statement in obama_related:
print(statement.ruling)
# OUTPUT:
# > True
# > Pants On Fire!
# > Mostly True
# > ...
pip install politifact
NOTE: Work in progres...
See http://politifact-py.readthedocs.io/en/latest/.
The project uses pipenv for package and virtual environment management. Install it with pip install pipenv
- Get all dependencies with
pipenv install --dev
python -m pytest tests/
Make sure you have
twine
installed.pip install twine
python setup.py sdist
- Create a Github Release for the project
twine upload dist/*
Released under the MIT license. See LICENSE for further details.