Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yukti-09/extracting-data-from-twitter
Data From Twitter!
https://github.com/yukti-09/extracting-data-from-twitter
data data-mining extracting-data timeline tweepy tweets twitter
Last synced: about 2 months ago
JSON representation
Data From Twitter!
- Host: GitHub
- URL: https://github.com/yukti-09/extracting-data-from-twitter
- Owner: Yukti-09
- Created: 2020-12-01T08:37:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-16T05:23:54.000Z (about 4 years ago)
- Last Synced: 2024-10-25T07:32:22.830Z (3 months ago)
- Topics: data, data-mining, extracting-data, timeline, tweepy, tweets, twitter
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Extracting-Data-From-Twitter
## Application and Authorization
1. Apply for a Twitter Developer Account.
2. Upon verification create an application.
3. Install tweepy.
4. Authorize via running the following code (using your own consumer key, consumer secret, access token and access secret)
[[AUTHORIZATION CODE]](https://github.com/Yukti-09/Extracting-Data-From-Twitter/blob/main/authorization.py)
## Generate your own twitter handle
The following code enables us to randomly generate a username. If the username already exists, the ID of the user is printed and if it does not exist, it is indicated that the username is free for usage. [[RANDOMLY GENERATE USERNAME]](https://github.com/Yukti-09/Extracting-Data-From-Twitter/blob/main/Generate_Twitter_Handle.py)
## Your own Timeline
In order to pull ten most recent tweets from your Twitter feed the following code can be followed. [[OWN TIMELINE CODE]](https://github.com/Yukti-09/Extracting-Data-From-Twitter/blob/main/Your_Own_Feed.py)
## Get Data from Twitter Handle
In order to pull data from a twitter handle the following code can be followed. [[GET DATA FROM HANDLE]](https://github.com/Yukti-09/Extracting-Data-From-Twitter/blob/main/Get_Data_From_Twitter_Handle.py)
Here, 150 of the most recent tweets of the CEO of Twitter (Twitter Handle Name: jack) have been extracted. Date and time, tweet id and tweet have been printed.
## Get Data from Twitter Phrases
In order to pull data from a twitter handle the following code can be followed. [[GET DATA FROM PHRASES]](https://github.com/Yukti-09/Extracting-Data-From-Twitter/blob/main/Get_Data_From_Phrases.py)
Here, 150 of the most recent tweets of the phrase '2020 US Election' have been extracted. Date and time, tweet id and tweet have been printed.