Skip to content

Real-time sentiment analysis of Twitter data using NLTK and Google Sheets as a database

Notifications You must be signed in to change notification settings

lukegenung/twitter-sentiment-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter-sentiment-bot

Real-time sentiment analysis of Twitter data using NLTK and Google Sheets as a database.

This NLP framework does the following:

  1. Build a sentiment analysis model using NLTK twitter_samples and any additional training samples provided by the user
  2. Read new Twitter data from a Google Sheet
  3. Processes and scores sentiment of the new Twitter data
  4. Posts the processed data back to a Google Sheet

Google Sheets is used to automate querying Twitter API on a scheduled basis. Both raw and processed data is stored in Google Sheets.

To Use

  1. Update with your Google Sheet workbook and worksheet names in main.py
  2. The specified Google Sheet to pull from MUST have a column named 'status'

Optional: 3. If you want to add your own training data, update csv filepath in build_model.py

For step-by-step explanation of the code, refer to Wiki: https://github.com/lukegenung/twitter-sentiment-bot/wiki

About

Real-time sentiment analysis of Twitter data using NLTK and Google Sheets as a database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages