https://github.com/idoqo/twdl
A simple python script for grabbing media (video/image) files from tweets.
https://github.com/idoqo/twdl
Last synced: 3 months ago
JSON representation
A simple python script for grabbing media (video/image) files from tweets.
- Host: GitHub
- URL: https://github.com/idoqo/twdl
- Owner: idoqo
- Created: 2018-01-01T08:06:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-03T19:52:54.000Z (over 7 years ago)
- Last Synced: 2025-01-09T15:45:08.564Z (5 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Setting Up
Generate your twitter API keys from, copy `config.py.example` to `config.py` and update it with the generated twitter keys.
TWDL depends on tweepy so you would need to install it using `pip install tweepy`.
Once tweepy is installed, all you need to do is run `python twdl.py --url=tweet_url` and voila! your tweet media gets downloaded (of course, that only happens if the tweet contains a gif or media).
### Flags
twdl accepts two CLI arguments:
```bash
--url: This is the complete link to the tweet (not just the tweet ID)
--filename: By default, twdl stores the file with same name as the name it gets from twitter. Use the --filename flag to override this with your preferred file name.
```
#### Feeling generous?Star the project and do share!