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

Question about proxy #171

Closed
semprom opened this issue Sep 18, 2011 · 7 comments
Closed

Question about proxy #171

semprom opened this issue Sep 18, 2011 · 7 comments

Comments

@semprom
Copy link

@semprom semprom commented Sep 18, 2011

Hello.
What kind of proxy can i use?
Web proxy like this one proxeasy.com or something like this hidemyass.com/proxy-list/ ?
I ask this cuz there are many videos from youtube wich cannot be downloaded from Germany ( i have VPS there ).

Thanks.

@rg3
Copy link
Collaborator

@rg3 rg3 commented Sep 18, 2011

Any working HTTP proxy that could be configured in a web browser.

@phihag
Copy link
Contributor

@phihag phihag commented Sep 18, 2011

As rg3 said, any HTTP proxy can be used by setting the http_proxy environment variable to the proxy you want. (9 times out of ten, when somebody speaks of a proxy, they mean an HTTP proxy)

However, this only applies to HTTP connections, and not RTMP ones, which would need a SOCKS proxy. Luckily, youtube currently serves nearly every video via HTTP and only a streams and some copyrighted ones via RTMP. Currently, youtube-dl does not support SOCKS proxies. If that's a feature you want, feel free to open a Request labeled bug for SOCKS support.

Of course, you can always use some kind of tunnel/VPN, for example Hotspot Shield.

@phihag phihag closed this Sep 18, 2011
@semprom
Copy link
Author

@semprom semprom commented Sep 27, 2011

Hello.
When I try "youtube-dl http_proxy 184.22.120.70:3128 http://www.youtube.com/watch?v=F1oDtwsQDTk" still there is no luck.
The proxy is HTTP and is working.

Any idias?

@phihag
Copy link
Contributor

@phihag phihag commented Sep 27, 2011

http_proxy is not a youtube-dl command, but an environment variable. Either set it for the lifetime of the shell:

export http_proxy=http://184.22.120.70:3128
youtube-dl http://www.youtube.com/watch?v=F1oDtwsQDTk

or only for one invocation:

http_proxy=http://184.22.120.70:3128  youtube-dl http://www.youtube.com/watch?v=F1oDtwsQDTk
@semprom
Copy link
Author

@semprom semprom commented Sep 27, 2011

Wow, it works.

Thank you.

@lenik
Copy link

@lenik lenik commented Aug 13, 2012

I'm the one out of ten.. I had rarely succeeded to use an http proxy, or very slow if luckily some are alive. because most of them are blocked in China. So, I always think of a socks proxy (using ssh tunnel) when speaks of a proxy.

@FiloSottile
Copy link
Collaborator

@FiloSottile FiloSottile commented Aug 19, 2012

@lenik I had implemented it when I needed to debug a geo-blocked using a ssh AWS machine. I will send you the patch.
Anyway, opened #402 to keep track of the feature request.

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
5 participants
You can’t perform that action at this time.