linkindle icon indicating copy to clipboard operation
linkindle copied to clipboard

Proxy & linkpy

Open Sebwap opened this issue 6 years ago • 2 comments

Hello,

Is there a way to define a proxy while using Linkpy ?

Thanks :)

Sebwap avatar Sep 24 '19 09:09 Sebwap

Hi! :)

Unfortunately I haven't tested this, but I'm just using requests so you should be able to define some environment variables to do that:

On *NIX:

$ export HTTP_PROXY="http://your_proxy_url:port"
$ export HTTPS_PROXY="http://your_proxy_url:port"

On Windows:

set http_proxy=http://your_proxy_url:port
set https_proxy=http://your_proxy_url:port

Or something like that. Hope that helps!

outadoc avatar Sep 24 '19 11:09 outadoc

Unfortunately, i'm on a professional computer where i'm not allowed to do this. I use "px" as proxy in those cases, but it need to be specified in a "proxies" variable when calling Request.

Thanks for your reply !

Please treat my message as a feature request. :)

Sebwap avatar Sep 24 '19 15:09 Sebwap