This is the code for Sentiment Analysis on Twitter Data.
Download it by clicking the green download button here on Github, then go to Google Colab and upload it. There, you can run the code in the browser without having to install any dependencies locally. You only need to fill out your specific twitter auth variables. To create them, go to twitter apps.
In order for you to get the Twitter feed working you need four keys; the Consumer Key, Consumer Secret, Access Token and Access Token Secret. Below are the steps to get those 4 keys.
1.Go to https://apps.twitter.com/app/new and log in, if necessary.
2.Enter your desired Application Name, Description and your website address making sure to enter the full address including the http://. You can leave the callback URL empty.
3.Accept the TOS and submit the form by clicking the Create your Twitter Application.
4.After creating your Twitter Application click on the tab that says Keys and Access Tokens, then you have to give access to your Twitter Account to use this Application. To do this, click the Create my Access Token button.
5.Lastly copy the Consumer key (API key), Consumer Secret, Access Token and Access Token Secret from the screen into our plugin’s Twitter Options page and test.