How gjelbrim/twittermirror works
twittermirror is a Python script that polls a chosen Twitter user's latest tweet and mirrors it through a second account when it differs from that account's latest tweet. Setup gathers credentials and the target handle; configuration supplies them to separate reader and poster clients; the main loop compares tweets and decides when to post or retweet. The README documents this two-account setup and the install-and-run workflow. Source excerpts show the calls and configuration wiring; the Twitter service is inferred from Tweepy API calls.
Main entry points: users.py Tweet poster · config.py Config loader · twittermirror.py Poll and compare · install.py Credential setup
Components 8
Setup and config
- Credential setup
install.py - config.ini
- Config loader
config.py
Mirroring workflow
- Poll and compare
twittermirror.py
Twitter clients
- Tweet reader
users.py - Tweet poster
users.py
Other components
- Operator
- Twitter API
Connections 11
- Operator → Credential setup: provides credentials
README.md - Operator → Poll and compare: starts script
README.md - Credential setup → config.ini: writes settings
install.py - config.ini → Config loader: loads settings
config.py - Config loader → Tweet reader: supplies credentials
users.py - Config loader → Tweet poster: supplies credentials
users.py - Poll and compare → Tweet reader: fetches latest tweet
twittermirror.py - Poll and compare → Tweet poster: checks and posts
twittermirror.py - Tweet reader → Twitter API: reads timeline
users.py - Tweet poster → Twitter API: posts or retweets
users.py - Tweet poster → Tweet poster: retweets internally
users.py