rg3/youtube-dl — Issue #271: http_proxy with --get-url
Author: jefftimesten
Created: 2012-01-11 03:32:45+00:00
State: open

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!