Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
mark a9d5eb6200 Update 'README.md' pirms 6 mēnešiem
.gitignore ignore default output dir pirms 6 mēnešiem
README.md Update 'README.md' pirms 6 mēnešiem
UNLICENSE.txt rename to UNLICENSE.txt pirms 6 mēnešiem
config.example.json first working version pirms 6 mēnešiem
main.py move tweet deletion out of the downloading loop so it actually downloads multiple images lmao pirms 6 mēnešiem
requirements.txt fix requirements.txt pirms 6 mēnešiem

README.md

tmw

Twitter Media Watcher

Watches a twitter account for media to be posted, and then downloads it.

Why?

I wanted to get screenshots off of my Switch easier. Making a dummy twitter account and this script proved to be the easiest way.

Configuration

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 key
  • consumer_secret: twitter api consumer secret
  • access_token: twitter api access token
  • access_secret: twitter api access secret
  • burn_after_reading: true/false: If true, deletes tweets after downloading the media.
  • output_dir: Where to download stuff.

How to run

  1. pip install -r requirements.txt
  2. Do up ur config.json all fancy like according to the above.
  3. python main.py

Warnings

  • This thing seems to crash if you leave it running for a while. I'm still working on trying to fix that issue.
  • KEEP IN MIND if you have burn_after_reading enabled it will delete all media tweets after downloading them. It doesn't limit itself to ones posted from a Switch.