|
3 年之前 | |
---|---|---|
.gitignore | 3 年之前 | |
README.md | 3 年之前 | |
UNLICENSE.txt | 3 年之前 | |
config.example.json | 3 年之前 | |
main.py | 3 年之前 | |
requirements.txt | 3 年之前 |
Twitter Media Watcher
Watches a twitter account for media to be posted, and then downloads it.
I wanted to get screenshots off of my Switch easier. Making a dummy twitter account and this script proved to be the easiest way.
Config goes in config.json
At some point i'll make it not require creating an application manually, maybe.
Lmao twitter doesn't let you do this so you're stuck having to make an application yourself sorry that twitter is so garbage
consumer_key
: Your twitter api consumer keyconsumer_secret
: twitter api consumer secretaccess_token
: twitter api access tokenaccess_secret
: twitter api access secretburn_after_reading
: true
/false
: If true, deletes tweets after
downloading the media.output_dir
: Where to download stuff.pip install -r requirements.txt
config.json
all fancy like according to the above.python main.py
burn_after_reading
enabled it will delete all media tweets after downloading them. It doesn't limit itself to ones posted from a Switch.