Skip to content

haideralipunjabi/twitter-header-script

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Twitter-Header-Script

Python Script to generate a Twitter Header with Like / Retweet Statistics of a Tweet, and 3 latest followers

Demo

header.png Sample Generated Image

Also, I am going to be using this as my header on Twitter for a while, using this tweet.

Usage

  1. Download the requirements
    pip install -r requirements.txt
  2. Create a directory called fonts and download SourceCodePro-Regular.ttf from Google Fonts into it
  3. Create a Twitter app from Twitter Developer Dashboard
  4. Rename .env.sample to .env and fill it with appropriate values from your Twitter App
  5. Change the PINNED_TWEET_ID variable in main.py to the ID of the tweet you want to use
  6. Run the script to generate the header and upload it
  7. Run it at regular intervals (e.g, using cronjobs) to make sure the header is always updated

About

Dynamic Twitter Header using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages