Question about proxy #129

Closed
opened 2026-02-20 21:03:14 -05:00 by deekerman · 7 comments
Owner

Originally created by @semprom on GitHub (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.

Originally created by @semprom on GitHub (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.
Author
Owner

@rg3 commented on GitHub (Sep 18, 2011):

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

@rg3 commented on GitHub (Sep 18, 2011): Any working HTTP proxy that could be configured in a web browser.
Author
Owner

@phihag commented on GitHub (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 commented on GitHub (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](http://hotspotshield.com/).
Author
Owner

@semprom commented on GitHub (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?

@semprom commented on GitHub (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?
Author
Owner

@phihag commented on GitHub (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
@phihag commented on GitHub (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 ```
Author
Owner

@semprom commented on GitHub (Sep 27, 2011):

Wow, it works.

Thank you.

@semprom commented on GitHub (Sep 27, 2011): Wow, it works. Thank you.
Author
Owner

@lenik commented on GitHub (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.

@lenik commented on GitHub (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.
Author
Owner

@FiloSottile commented on GitHub (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.

@FiloSottile commented on GitHub (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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#129
No description provided.