An open API service indexing awesome lists of open source software.

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

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
```