Skip to content

LostLaser/Daratos

Repository files navigation

Daratos Logo

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.

Build Status

Consumer Offerings

You can install the chrome web extension here.

Road Map

  • Web extension for a wide range of browsers
  • Publicly accessible API
  • User labeling of data

Running The Code

  1. Fork and clone the repository.
  2. Make sure python 3.7 is installed on your machine.
  3. Install dependencies.
    cd Daratos_API
    pip install -r requirements.txt
    
  4. Run the flask api in skeleton mode. Prediction will be turned off in skeleton mode.
    export PREDICTION_API_KEY="MISSING"
    python app.py runserver
    
  5. Add the extension, located under Daratos_EXT, to your browser.
  6. Navigate to any news article.
  7. Click the extension button near the top right of your browser window.

Contributing

Coding style

  • Try your best to follow the python coding style specified here.

Commits

  • Each commit should have a single purpose. If a commit contains multiple unrelated changes, the changes should be split into separate commits.

Testing

  • Code should pass all tests before a pull requst is made for the API
    • Running the test suite:
      1. Switch to the API folder (Daratos_API)
      2. Run this command: pytest
      3. Correct any errors that may have shown up

Creating a pull request

  • Pull requests are welcome! Please open an issue first to discuss what you would like to change.