Spark-NF / twitter_media_downloader

Twitter media downloader.
Apache License 2.0
293 stars 52 forks source link

Only gets default (medium) image url, not large #4

Closed sethcohn closed 7 years ago

sethcohn commented 7 years ago

the API url defaults to medium, but can be larger, the url gets ":large" (or :small, etc) for other sizes

This should be a argument, I suspect.

Spark-NF commented 7 years ago

Yes indeed.

I just added a -s / --image-size argument to choose between the 4 possible values: thumb, small, medium, large. It defaults to medium.

If you choose large but the image does not have this size available for some reason, it will fallback to the default URL (without size indicator).