This project automatically creates and updates a Twitter banner to thank your latest followers by displaying their profile pictures in a customized banner image.
- Fetches your latest Twitter followers
- Downloads follower profile pictures
- Creates a customized banner with circular profile pictures
- Automatically updates your Twitter profile banner
- Handles cleanup of temporary files
npm install
pip install -r requirements.txt
- Create a
.env
file in the root directory with the following variables:
TWITTER_USERNAME=your_username
TWITTER_EMAIL=your_email
TWITTER_PASSWORD=your_password
TARGET_USERNAME=target_twitter_handle
- Place your background image as
bg.png
in the root directory- Recommended dimensions: 1500x500 pixels
- Format: PNG
├── index.js # Main Node.js application
├── get_followers.py # Python script for Twitter API interactions
├── banner_extension.py # Twitter API extension for banner updates
├── requirements.txt # Python dependencies
├── bg.png # Background image template
└── .env # Environment variables
Run the application with:
node index.js
The script will:
- Fetch your latest followers
- Download their profile pictures
- Create a composite image with circular profile pictures
- Update your Twitter banner
- Clean up temporary files
The application includes comprehensive error handling and logging:
- File system operations
- Image processing
- API interactions
- Network requests
Feel free to submit issues and pull requests.