Twitter-Header-Script
Python Script to generate a Twitter Header with Like / Retweet Statistics of a Tweet, and 3 latest followers
Demo
Also, I am going to be using this as my header on Twitter for a while, using this tweet.
Usage
- Download the requirements
pip install -r requirements.txt
- Create a directory called fonts and download SourceCodePro-Regular.ttf from Google Fonts into it
- Create a Twitter app from Twitter Developer Dashboard
- Rename
.env.sample
to.env
and fill it with appropriate values from your Twitter App - Change the
PINNED_TWEET_ID
variable inmain.py
to the ID of the tweet you want to use - Run the script to generate the header and upload it
- Run it at regular intervals (e.g, using cronjobs) to make sure the header is always updated