Coder Social home page Coder Social logo

thundergolfer / politifact-py Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 0.0 143 KB

Python wrapper for the Politifact REST API

Home Page: http://politifact-py.readthedocs.io/en/latest/

License: MIT License

Python 99.00% Makefile 1.00%
api-wrapper politifact fact-checking facebook fake-news

politifact-py's Introduction

Politifact-Py Documentation Status Build Status

⚠️ 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.


Usage

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
# > ...

Installation

pip install politifact

Documentation

NOTE: Work in progres...

See http://politifact-py.readthedocs.io/en/latest/.

Development

Dependencies

The project uses pipenv for package and virtual environment management. Install it with pip install pipenv

  1. Get all dependencies with pipenv install --dev

Testing

python -m pytest tests/

Releasing

Make sure you have twine installed. pip install twine

  1. python setup.py sdist
  2. Create a Github Release for the project
  3. twine upload dist/*

License

Released under the MIT license. See LICENSE for further details.

politifact-py's People

Contributors

thundergolfer-two avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

politifact-py's Issues

Response [404] while using API

Hi there,

Can I check if access to the politifact API is generally broken? I have tried several commands but all of them returned me the Response [404] error.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.