These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
JSON
Pandas
Tweepy
Open the conda terminal and paste the following,
pip install tweepy
.
Open the terminal and paste the following
sudo apt-get install python-tweepy
.
It is an utility program which scraps tweets for a given query by the user using twitter's API. The data scrapped is then stored as a csv file from which the data can cleaned and used for further analysis and exploration.
API stands for application programming interface. In basic terms, APIs just allows application to communicate with another. API allows us to get data from outside sources.
- We can send an API a request detailing the information we want.
- APIs allows our sites to alter data on other applications, too. For instance, you’ve probably seen “Share on Facebook” or “Share on Twitter” buttons on miscellaneous websites. When/if you click one of these buttons, the site you’re visiting can communicate with your Facebook or Twitter account, and alter its data by adding new status or tweet.
step 1: Go to the twitter's developer website,
Twitter Developer site
step 2: Sign in to the account and go to the apps menu
step 3: Select create an app and complete the procedures mentioned.
step 4: After completing all the procedures, go to app details and view the keys and token tab.
step 5: Copy the following into the program Credentials.py
consumer API key ===> credentials['Consumer_key']
Consumer API secret key ===> credentials['Consumer_secret']
Access token ===> credentials['Access_token']
Access token secret ===> credentials['Access_key']
Clear description is given to each of the function in the python file.
Finally,Pull requests/changes/stars would be really helpful.
SIDDESH S S
References: https://medium.com/@perrysetgo/what-exactly-is-an-api-69f36968a41f