Skip to content

Twitter analysis done as a part of PreCog assignment.

Notifications You must be signed in to change notification settings

shrawnz/tweettweet

Repository files navigation

tweettweet

Twitter analysis done as a part of PreCog assignment.

https://tweettweet4pc.herokuapp.com/

To run locally, run commands:

  1. export FLASK_APP=tweet.py
  2. flask run

Approach:

  1. Used Tweepy to connect to the Twitter API.
  2. Through the twitter api searched for tweets relevant to Modi and Kejriwal by using keywords such as "modi,bjp pm,pm modi" and "aap, aam aadmi party, kejriwal" for Modi and Kejriwal respectively.
  3. Saved all the statuses received to mongodb using MongoAlchemy.
  4. Filtered out relevant data by querying the dataset.
  5. To find out who's more popular in Delhi,I counted posts having location as delhi or ncr and plotted a chart for the same.
  6. Used highcharts with jquery to show graphs and visualisations.

About

Twitter analysis done as a part of PreCog assignment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published