Skip to content

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.

License

Notifications You must be signed in to change notification settings

SiddeshSambasivam/TweetSpyder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TweetSpyder

TS

INTRODUCTION

Getting Started

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.

Required Dependencies

JSON 
Pandas
Tweepy

Installation

For Windows,

Open the conda terminal and paste the following,
pip install tweepy.

For Linux,

Open the terminal and paste the following
sudo apt-get install python-tweepy.

What is TweetSpyder ?

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.


BACKGROUND

What is an API ?

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.

  1. We can send an API a request detailing the information we want.
  2. 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.

So how to get THe API for twitter ?

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']

Terminal,

Terminal

Dataframe(csv file),

Dataframe

More Details

Clear description is given to each of the function in the python file.

Finally,Pull requests/changes/stars would be really helpful.


Authored by

SIDDESH S S

References: https://medium.com/@perrysetgo/what-exactly-is-an-api-69f36968a41f

About

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.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages