Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
http_proxy with --get-url #271
Comments
|
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 |
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!