Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aida-enna/twitter2dp
🐦 Check for new tweets from a set of users and send them to customizable webhooks
https://github.com/aida-enna/twitter2dp
discord python scrape scraper tweet twitter webhook
Last synced: 4 months ago
JSON representation
🐦 Check for new tweets from a set of users and send them to customizable webhooks
- Host: GitHub
- URL: https://github.com/aida-enna/twitter2dp
- Owner: Aida-Enna
- Created: 2024-02-28T18:21:29.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-08T19:54:36.000Z (11 months ago)
- Last Synced: 2024-04-18T00:02:03.333Z (10 months ago)
- Topics: discord, python, scrape, scraper, tweet, twitter, webhook
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter2DP - Twitter to Discord (Python)
A simple script that will check on a list of user's last tweets and send them to the specified webhook if there's a new one, on a configurable timer.
Big thanks to the [Twikit API wrapper](https://github.com/d60/twikit) for making this possible!
## Installation
``pip install -r requirements.txt``1. Rename the ".env_example" and "users.json_example" files to remove the "_example" from both. Fill them out, there is no limit on the amount of users you can add.
2. Run the script with ``python twitter2dp.py``## Required arguments for users.json
``account_to_check`` - The twitter username (not ID) of the person you want to check the tweets of
``posting_text`` - The text that should be sent to the webhook. The variable ```` will be replaced with the tweet's URL.
``webhook_url`` - The URL that they webhook data should be sent to
## Optional arguments for users.json
``webhook_avatar_url`` - a URL pointing to the image the webhook should use as it's profile picture
``webhook_name`` - a name the webhook should use when posting
## Possible improvements:
* An accounts.json with some twitter accounts in it which the program will swap between every so often to avoid rate limiting/account closure?