Skip to content

Jijo070/Twitter-Extract-For-Sentiment-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Twitter-Extract-For-Sentiment-Analysis

The motivation for this project was to predict the US presidential elections 2016. Sentiment analysis was done on daily tweets of both candidates posted from twitter and predicted who is more favourite. Dataset was created on daily basis from twitter using Tweepy API. Analyzed the result by running optimal regression models using SAS Enterprise Miner after a thorough cleaning of the dataset.

Download twitter_test.py from above and install the APIs and get the credentials metioned below:

APIs Needed:

Tweepy - pip install tweepy

Twitter API credentials

consumer_key = ""
consumer_secret = ""
access_key = ""
access_secret = ""
Create a twitter account and get these credentials from https://apps.twitter.com/ by following the instructions mentioned. Paste the credentials in the code and run to generate the .csv file.

About

Twitter Data Of Contestants in 2016 US Presidential Elections

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages