Skip to content

Analyze news headlines with Google Natural Language API

License

Notifications You must be signed in to change notification settings

mikeshimkus/news-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Analyze news headlines with Google Natural Language API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published