https://github.com/veeso/twitter-giveaway-winner
Simple script to extract the winner of a Twitter giveaway from options
https://github.com/veeso/twitter-giveaway-winner
Last synced: about 1 month ago
JSON representation
Simple script to extract the winner of a Twitter giveaway from options
- Host: GitHub
- URL: https://github.com/veeso/twitter-giveaway-winner
- Owner: veeso
- License: mit
- Created: 2022-11-29T11:53:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-04T19:44:35.000Z (over 2 years ago)
- Last Synced: 2025-01-25T23:03:38.110Z (3 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twitter Giveaway Winner
Developed by Cryptopapies
[](https://opensource.org/licenses/MIT)
---
## How it works
This Python scripts gets the winner for a giveaway organized on Twitter choosing a random user from the users who satisfy these conditions:
Given a `tweet_id`
the user must have liked the `tweet` and retweeted the `tweet`
AND must follow the provided `username`.## Get started
1. Install dependencies
```pip3 install -r requirements.txt```
2. Setup environment
Create a `.env` file in the repository root and write this into the file:
```txt
BEARER_TOKEN=YOUR_BEARER_TOKEN_HERE
```3. Run the script
```python3 -m twitter_giveaway_winner TWEET_ID YOUR_USERNAME```
## License
twitter-giveaway-winner is licensed under the MIT license.
You can read the entire license [HERE](LICENSE)