https://github.com/weaming/download-twitter-resources
Download tweet images and videos
https://github.com/weaming/download-twitter-resources
Last synced: about 1 year ago
JSON representation
Download tweet images and videos
- Host: GitHub
- URL: https://github.com/weaming/download-twitter-resources
- Owner: weaming
- Created: 2018-11-24T09:23:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-24T03:23:47.000Z (almost 5 years ago)
- Last Synced: 2025-04-08T21:41:29.048Z (about 1 year ago)
- Language: Python
- Size: 22.5 KB
- Stars: 10
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Download twitter resources
Download tweet images and videos. Run threads which has a event loop to download resources asynchronously.
```
pip3 install download-twitter-resources
```
```
usage: download-twitter-resources [-h] [-c CONFIDENTIAL]
[-s {large,medium,small,thumb,orig}]
[--tweet] [--video] [-l LIMIT] [--rts]
[--thread-number THREAD_NUMBER]
resource_id dest
Download all images uploaded by a twitter user you specify
positional arguments:
resource_id An ID of a twitter user. Also accept tweet url or
tweet id.
dest Specify where to put images
optional arguments:
-h, --help show this help message and exit
-c CONFIDENTIAL, --confidential CONFIDENTIAL
a json file containing a key and a secret
-s {large,medium,small,thumb,orig}, --size {large,medium,small,thumb,orig}
specify the size of images
--tweet indicate you gived a tweet url or tweet id
--video include video
-l LIMIT, --limit LIMIT
the maximum number of tweets to check (most recent
first)
--rts save images contained in retweets
--thread-number THREAD_NUMBER
```
About API rate limits: https://developer.twitter.com/en/docs/twitter-api/v1/rate-limits