Spark-NF / twitter_media_downloader

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

Twitter media downloader

GitHub issues Build status Code Coverage Project license

About

Downloads all videos and images from a Twitter account.

Supports downloading an user's tweets, retweets, and likes.

Usage

twitter_media_downloader.py [-h] [-o DIR] [-f FORMAT] [-s IMAGE_SIZE] [-r] [-u] [-q] userid [...]

On first run, the program will ask you for your OAuth consumer key and consumer secret. It will then be stored in a .oauth.json file so that you don't need to enter them every single time. It will also ask your access token and access token secret. Those are only required if you are planning to access protected accounts.

Arguments

Example

python twitter_media_downloader.py -o out -f "[%date%] %filename%.%ext%" -s large -u Twitter

Will download all of the Twitter account media files into the out/Twitter/ directory, each file named like [2017-01-11 05-56-33] C13U6d-VQAAVKeY.jpg.

Available tokens for format

Authors

License

The program is licensed under the Apache License 2.0.