Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Add geo location bypass option #86

Open
ricardofunke opened this issue Jun 18, 2021 · 1 comment
Open

Add geo location bypass option #86

ricardofunke opened this issue Jun 18, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ricardofunke
Copy link

youtube-dl tool has some options to bypass geo location by faking X-Forward-For http headers, for example:

    --geo-verification-proxy URL         Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy (or none, if the option is not present) is used for the actual downloading.
    --geo-bypass                         Bypass geographic restriction via faking X-Forwarded-For HTTP header
    --no-geo-bypass                      Do not bypass geographic restriction via faking X-Forwarded-For HTTP header
    --geo-bypass-country CODE            Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code
    --geo-bypass-ip-block IP_BLOCK       Force bypass geographic restriction with explicitly provided IP block in CIDR notation

So maybe we can have something like that for the youtube-search-python as well?

@mytja mytja added the enhancement New feature or request label Jun 24, 2021
@mytja
Copy link
Collaborator

mytja commented Jun 20, 2022

Sorry, but I have no interest in reverse-engineering youtube-dl just for this header. I know, there exists an MDN page about this HTTP header, but I just don't have the interest needed. In the end, I'd be happy to accept pull requests. Marking this as good first issue and help wanted.

@mytja mytja added good first issue Good for newcomers help wanted Extra attention is needed labels Jun 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants