Daratos is a tool to determine the political leaning of a news article that you find on the web. Bias predictions are pulled from The Bipartisan Press' AI.
You can install the chrome web extension here.
- Web extension for a wide range of browsers
- Publicly accessible API
- User labeling of data
- Fork and clone the repository.
- Make sure python 3.7 is installed on your machine.
- Install dependencies.
cd Daratos_API pip install -r requirements.txt
- Run the flask api in skeleton mode. Prediction will be turned off in skeleton mode.
export PREDICTION_API_KEY="MISSING" python app.py runserver
- Add the extension, located under Daratos_EXT, to your browser.
- Navigate to any news article.
- Click the extension button near the top right of your browser window.
- Try your best to follow the python coding style specified here.
- Each commit should have a single purpose. If a commit contains multiple unrelated changes, the changes should be split into separate commits.
- Code should pass all tests before a pull requst is made for the API
- Running the test suite:
- Switch to the API folder (Daratos_API)
- Run this command:
pytest
- Correct any errors that may have shown up
- Running the test suite:
- Pull requests are welcome! Please open an issue first to discuss what you would like to change.