Closed foobar546 closed 1 year ago
I think their should be an "option" to download from a nitter instance directly.
I agree
I agree as well. Personally, I use Nitter instances to get around NSFW content blocking. Not everyone wants to have a Twitter account, especially if they don't plan to use the site for anything other than scraping content. Being able to download directly from Nitter would also greatly benefit users' privacy without resorting to proxies or VPNs. You can never be too careful with today's social media hunger for users' data.
Good point, agreed. I just used gallery-dl on a Twitter user but got numerous warnings that the nsfw photos require log-in. :-(
Simply get an account just for scraping, you don't have to give twitter your address or something...
I did exactly that, and Twitter auto-banned me twice in a row right after logging in with gdl (TBF, I used a name like dummyacc
), so had to contest the bans each time (I simply asked something simple like "why the ban ?"). At least they've left me alone ever since.
I'm going to request this as well and probably expand just a little bit.
Commit https://github.com/mikf/gallery-dl/commit/6c153750fa9b787f0fd6ee59bd00f591e1520eca adds initial support for Nitter instances. Regular Tweets with images and videos work, but it might produce the wrong results for retweets/quotes and anything out of the ordinary.
It supports these six instances by default (should I add more?). It is possible to either prefix a URL with nitter:
or add an entry to your config file to have gallery-dl recognize other instances.
"nitter": {
"twitter.censors.us": {"root": "https://twitter.censors.us"},
"nitter.ca": {"root": "https://nitter.ca"}
}
great! will it support filter flags as well?
please add this instance https://nitter.inpt.fr
If you pass gallery-dl a nitter URL, it redirects to twitter. Why does it do that? It should download directly from the nitter instance and not do any twitter accesses.