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 for making this possible!
pip install -r requirements.txt
- 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.
- Run the script with
python twitter2dp.py
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 <tweeklink>
will be replaced with the tweet's URL.
webhook_url
- The URL that they webhook data should be sent to
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
- An accounts.json with some twitter accounts in it which the program will swap between every so often to avoid rate limiting/account closure?