Welcome to the Mr. Beast's Twitter Challenge!
This application is a fun project inspired by the famous YouTuber Mr. Beast and AI researcher Lex Fridman.
This application selects a random user who liked a particular tweet, making it a perfect tool for online Twitter challenges or giveaways.
The application uses the Twitter API to fetch the users who have liked a specific tweet and stores them in an SQLite database. When the "Select Random Liker" button is pressed, a random user from the database is chosen as the "winner".
This application is created using Python, Streamlit for the web interface, and SQLite for data storage.
- Python 3.7 or above
- Streamlit
- SQLite
- Requests
- A Twitter Developer Account
Clone the repository:
git clone https://github.com/your_username_/MrBeast-Twitter-Challenge.git
cd MrBeast-Twitter-Challenge
Install the necessary packages:
pip install -r requirements.txt
In secrets.toml
, replace BEARER_TOKEN
and TWEET_ID
with your actual Twitter Bearer Token and the ID of the tweet you want to analyze.
[twituh]
BEARER_TOKEN = "YOUR_TWITTER_BEARER_TOKEN"
TWEET_ID = "YOUR_TWEET_ID"
To run the app, navigate to the project directory in your terminal and enter:
streamlit run app.py
- Twitter API imposes rate limits, which restrict the number of requests you can make within a certain time period.
- Twitter API uses pagination for endpoints that could return large amounts of data, meaning you may need to make multiple requests to fetch all the data.
- SQLite databases are not designed to handle high levels of concurrent read/writes and lack certain features found in other DBMS.
- Twitter's Developer Policy requires that you respect user privacy and not hold onto data longer than necessary.
Contributions are welcome! 🎉
This project is licensed under the terms of the MIT license. See the LICENSE file for details.
- Mr. Beast, for his fun and creative challenges
- Lex Fridman, for inspiring the project with his use of Python scripts for Twitter challenges
- Twitter, for their API which makes this project possible
For any questions or comments, please open an issue on this repository.
This project is intended for educational and entertainment purposes only. It should not be used for any activities that violate Twitter's terms of service or any local laws. Use responsibly.