Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliasing nitter instances to twitter extractor #2415

Closed
cold-quix opened this issue Mar 17, 2022 · 2 comments
Closed

Aliasing nitter instances to twitter extractor #2415

cold-quix opened this issue Mar 17, 2022 · 2 comments

Comments

@cold-quix
Copy link

Currently, gallery-dl supports Twitter and Nitter URLs, the latter of which is simply treated as the former. This is helpful, but I tend not to use the nitter.net instance because it is often rate limited due to its popularity; instead I use other instances like nitter.42l.fr or nitter.pussthecat.org, etc.

However, gallery-dl does not recognize these URLs and I have to correct them manually to twitter.com or nitter.net. Is there a way to add an alias or extractor to the gallery-dl config file so that the program will treat certain URLs as though they were Twitter URLs?

@qqux
Copy link

qqux commented Mar 27, 2022

Is there a way to add an alias or extractor to the gallery-dl config file so that the program will treat certain URLs as though they were Twitter URLs?

@cold-quix there is a feature that does exactly that. It's even described in the manual: https://github.com/mikf/gallery-dl#examples

But... for some reason it does not seem to work.

$ gallery-dl twitter:https://nitter.42l.fr/test
[gallery-dl][error] No suitable extractor found for 'twitter:https://nitter.42l.fr/test'

If that feature were working, the commandline above would be what you'd use.

mikf added the site-feature-request label

@mikf that makes this issue a bugfix request, not a feature request :P

@jadedgnome
Copy link

jadedgnome commented Mar 27, 2022

I tried adding nitter.42l.fr to twitter.py but that didn't work because it falls back to twitter api rather than grabbing nitter proxied urls.

r"(?:twitter\.com|nitter\.net)"

r"(?:twitter\.com|nitter\.net|nitter\.42l\.fr)"

not a programmer so thats the extent of my tinkering.

@mikf mikf closed this as completed Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants