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

http_proxy with --get-url #271

Closed
jeffcrouse opened this issue Jan 11, 2012 · 1 comment
Closed

http_proxy with --get-url #271

jeffcrouse opened this issue Jan 11, 2012 · 1 comment

Comments

@jeffcrouse
Copy link
Contributor

@jeffcrouse jeffcrouse commented Jan 11, 2012

This is more of a question than an issue, so sorry if this is in the wrong place...

I am using a proxy from http://hidemyass.com/proxy-list/search-226235 so my command looks like this:

http_proxy=http://208.64.176.157:80 youtube-dl --get-url http://www.youtube.com/watch?v=VRNtdqbbHTo

I get back a URL like:

http://o-o.preferred.lga15s20.v24.lscache7.c.youtube.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Csource%2Cratebypass%2Ccp&fexp=907605%2C906424%2C916803&itag=22&ip=208.0.0.0&signature=1540E04C9CBE5729F3412EFCCE64DDC656DA5A09.2ADDDC7389B64EBCACF7DE4EF571E35E6C2C8F9D&sver=3&ratebypass=yes&source=youtube&expire=1326274839&key=yt1&ipbits=8&cp=U0hRS1JSUl9IU0NOMV9KTFZJOlJVcno5T0tyQkpi&id=55136d76a6db1d3a

But this URL gives me a 403 error when I try to load it on my local machine. Being a very observent kind of guy, I see that there is a var in the URL ip=208.0.0.0 that matches the proxy that I used. I tried changing the first part of the ip in the URL to the first part of my own, but it didn't work, so I imagine that it's hashed into the signature or something.

So my question is: is there any way to get a URL using a proxy (so as to avoid the dreaded 402 Payment Required), and then view it on another IP?

thanks!

@phihag
Copy link
Contributor

@phihag phihag commented Jan 11, 2012

Yes, you can't simply change the IP, as it is cryptographically signed with the signature field. The simplest solution would be to download the file via the proxy.

Alternatively, what you can do is download the actual file via IPv6. That works fine in my experience, as long as you still supply the same cookies (use youtube-dl's --cookies option to save them to disk).

@phihag phihag closed this Jan 11, 2012
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
2 participants
You can’t perform that action at this time.