Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Twitter Sentiment Analysis Tool using Python 3.5 and MongoDB

License

Notifications You must be signed in to change notification settings

steliossid/twitter-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentiment Analysis Tool for Twitter

Sentiment Analysis Tool for tweets using Python, MongoDB and Twitter Streaming API

Requirements

  • Twitter App
  • Python 3.5
  • MongoDB 3.4.5
  • Python Libraries

    • Tweepy 3.6.0
    • PyMongo 3.7.1
    • NLTK 3.3
    • TextBlob 0.15.1
    • Matplotlib 2.2.3

Instructions

  • Install Python 3.5

  • Install MongoDB

  • Create a Twitter app

  • Save all keys and access tokens inside files/credentials.json

    IMPORTANT: Do not share your personal keys and access tokens with anyone!

  • Install all Python libraries given or run pip install -r requirements.txt

  • Open a terminal and run python. Then, type import nltk and nltk.download()

  • Install movie_reviews, subjectivity, stopwords, vader_lexicon and punkt packages

  • Run main.py (make sure you have an open MongoDB connection)

Forked from DSkoufis/My_Thesis