11philip22 / TwitterMediaDownloader

downloads photos and videos from twitter
MIT License
17 stars 4 forks source link
bs4 python python3 python37 requests twint twitter urlib video-downloader youtube-dl

PRs Welcome

twitter-media-downloader

Downloads photos and videos from twitter.
Tested with python3.7 :)
If you have questions, requests or ideas send me a mail or open an issue.

Usage

The main branch doesn't support Windows since curses is not included int the windows python libraries. If you are using Windows please go to the logger branch. That branch uses logging instead of a curses output and is probably more stable. I wont fix the main branch since this program will be integrated with the Twint project.
https://github.com/twintproject/twint-utils

Use as program

Get prompted for input:

python3 core.py

Use a list:

python3 core.py list.txt

Dont use the username but the whole link. Like this: https://twitter.com/twitter

Use the Twitter class in your own python program

from twitter import Twitter

usernames = ["username1", "username2", "username3"]
location = "../Downloads"
t = Twitter(usernames=usernames, location=location)
t.start()

todo: