First the MongoDB is installed. The installation steps has been mentioned in the MongoDB Installation steps file. Account on Twitter has been created for the authorization to get the consumer_key , consumer_secret , access_token and access_secret keys. Connnectivity with authorization with twitter account and MongoDB has been done and the tweets from the Twitter account has been extracted and saved in the MongoDB using the script attached data.py The data from the MongoDB has been exported for further analysis of the sentiments of the tweets. As the downloaded data size is large it could not be uploaded. The sentiments analysis is done in the twitter_data.py script of the twitter data to get the positive and negative sentiments of the tweets. The graph has been plotted for the positive , negative and neutral sentiments as shown in graph.png.
prinkskam / dataanalysis Goto Github PK
View Code? Open in Web Editor NEWTwitter Data