https://github.com/aa-sikkkk/twitterdatamining
A Simple Script to mine data from X/Twitter
https://github.com/aa-sikkkk/twitterdatamining
data mining
Last synced: 5 months ago
JSON representation
A Simple Script to mine data from X/Twitter
- Host: GitHub
- URL: https://github.com/aa-sikkkk/twitterdatamining
- Owner: aa-sikkkk
- License: mit
- Created: 2024-08-03T06:53:38.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-03T06:58:48.000Z (almost 2 years ago)
- Last Synced: 2025-05-07T04:42:00.458Z (about 1 year ago)
- Topics: data, mining
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TwitterDataMining Script
This Python script uses the Tweepy library to interact with Twitter's API and fetch various types of Twitter data. It retrieves recent tweets from the home timeline, friends (following), followers, and tweets from the user's timeline.
## Features
- Fetches recent tweets from the home timeline.
- Retrieves the list of friends (users you follow).
- Retrieves the list of followers.
- Fetches tweets from the specified user's timeline.
## Requirements
- Python 3.6 or higher
- Tweepy
- python-dotenv
## Installation
1. **Clone the Repository**
```sh
git https://github.com/aa-sikkkk/TwitterDataMining.git
cd TwitterDataMining
python tweet.py
```
2. Create a .env file in the project directory with the following content:
```
BEARER_TOKEN=your_bearer_token
```