Skip to content

Enter keyword for Twitter search and get latest Tweets with sentiment on a Flask Webserver

License

Notifications You must be signed in to change notification settings

spreusler/Twitter-API-Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter-API-Flask

Do you want on-demand sentiment analysis for a given keyword? This project serves you Twitter API access on a Flask framework. Simply enter keyword and you receive the latest tweets and their sentiment via Textblob.

Test the live demo on Heroku.

Files and Folders

  • templates - Folder contains html source files for Flask render_template()
  • Procfile - Optional for deployment. This project is live on Heroku. Gunicorn is a WSGI HTTP Server Interface for Python.
  • app.py - Contains Flask logic
  • config_demo.py - File for credentials. Replace variables with your own data.
  • requirements.py - Python libraries and dependencies for the project
  • utils.py - Twitter API and sentiment analysis logic

Getting Started

  • Download repository
  • Insert your own credentials in config_demo.py and rename it to config.py
  • Local: Run application with python app.py
  • Optional: Deployment to Heroku

Prerequisites

  • Twitter API access
  • Python 3.6
  • Install libraries via pip install -r requirements.txt

Deployment

  • Optional: Deployment to Heroku with Gunicorn (Procfile)

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Enter keyword for Twitter search and get latest Tweets with sentiment on a Flask Webserver

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published