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

A potential way around the 429 issue? #23758

Closed
pauldotknopf opened this issue Jan 16, 2020 · 3 comments
Closed

A potential way around the 429 issue? #23758

pauldotknopf opened this issue Jan 16, 2020 · 3 comments
Labels

Comments

@pauldotknopf
Copy link

@pauldotknopf pauldotknopf commented Jan 16, 2020

I ran into this issue with another script I was writing (not public, yet).

I discovered that I would get 429 when I do a naked GET request. However, the browser worked fine. After investigation, I discovered my script worked fine if I used the same headers that the Chrome Dev Tool was using. It turns out, it was the cookie header.

In my tool, I'm going to have a command that allows you to set what the headers will be for all requests.

> ./my-tool set-headers
Step 1: Open Chrome developer tools
Step 1: Open the Network tab on the developer tools
Step 2: Scroll down until a network request for "get_video" is made
Step 3: Right click the request and click "Copy -> Copy as cURL"
Step 4: Paste the contents of your clipboard below
curl command: ...

The tool will then store this value in the user's home directory and use it for every network request.

@thelebster
Copy link

@thelebster thelebster commented Jan 16, 2020

@pauldotknopf
Copy link
Author

@pauldotknopf pauldotknopf commented Jan 16, 2020

I understand, this repo is flooded with these requests.

However, I thought I'd share a possible solution.

You'll never get a way to reproduce, because this issue is regional.

@dstftw dstftw closed this Jan 16, 2020
@danny-wu
Copy link

@danny-wu danny-wu commented Jan 18, 2020

youtube-dl --cookies cookies.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.