Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.6 KB

README.md

File metadata and controls

23 lines (18 loc) · 1.6 KB

News Sentiment Analyzer

This is a project based on VS Code Remote - Containers

This will grab the top headlines from a news API and run them through the Google Natural Language API sentiment analyzer. You can use this information to decide if you want to get up in the morning, or stay in bed.

Requirements for developing in a remote container:

  • Docker
  • Microsoft Visual Studio Code with the Remote Containers extension installed.
  • environment.env and gcloudkey.json files in the root folder.

Example commands to run the server from a Python virtualenv (aka without VSCode's help):

  • export FLASK_APP=app.py FLASK_ENV=development FLASK_DEBUG=0 GOOGLE_APPLICATION_CREDENTIALS=gcloudkey.json NEWSAPIKEY='apiKey from newsapi.org'
  • flask run --host 0.0.0.0 --port 9000 &

Sample requests: