spaam / svtplay-dl

Small command-line program to download videos from some streaming sites.
https://svtplay-dl.se
MIT License
716 stars 119 forks source link

Feauture requst: Possible to add proxy-support? #428

Open qnorsten opened 8 years ago

qnorsten commented 8 years ago

Hi! Is it possible to add some sort of -proxy command to bypass geoblocks. Was trying to set up some cron jobs on a server I got, but unfortunatly it is located in France, so most of the content is geoblocked.

If it is not possible to add above, does anyone else know of any way to run just svtplay-dl through a proxy using some other tools? I have access to swedish proxy-servers and servers in Sweden to pass an ssh-tunnel through, but have not found a way to only pass svtplay-dl traffic through.

spaam commented 8 years ago

http://stackoverflow.com/questions/11726881/how-to-set-an-http-proxy-in-python-2-7 have you tried that?

qnorsten commented 8 years ago

Thanks spaam, will try that later. I also found out that --http-header "X-FORWARDED-FOR=" seems to work fine on SVTplay atleast (like you had mentioned in an older issue)

spaam commented 8 years ago

yeah. i guess i should document those "hacks" on the webpage or something.

qnorsten commented 8 years ago

Yea that might be a good idea. Is there anymore interesting "hacks"?

robertfoss commented 7 years ago

Actually SOCKS support would be rather helpful for those of us living abroad.

forthrin commented 7 years ago

Can anyone provide a workaround command line for macOS/Linux that will run the current version of svtplay-dl through a localhost proxy (127.0.0.1:3456)?

forthrin commented 7 years ago

Does anyone know how to run a proxy only on a select few domains? All browsers (and macOS system settings) are based the opposite way: "Run proxy on all domains except a select few domains".

I tried using an Automatic Proxy Configuration (proxy.pac file), but it does not work! Can anyone help?

function FindProxyForURL(url, host) {

  if(dnsDomainIs(host, "www.svtplay.se"))
    return "SOCKS 127.0.0.1:9050";

  return "DIRECT";

}

Some pitfalls I ran into: