Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Proxy & linkpy #7

Open
Sebwap opened this issue Sep 24, 2019 · 2 comments
Open

Proxy & linkpy #7

Sebwap opened this issue Sep 24, 2019 · 2 comments

Comments

@Sebwap
Copy link

Sebwap commented Sep 24, 2019

Hello,

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

Thanks :)

@outadoc
Copy link
Owner

outadoc commented Sep 24, 2019

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!

@Sebwap
Copy link
Author

Sebwap commented Sep 24, 2019

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. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants