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

Is there a proxy method? #8

Open
laddie132 opened this issue Apr 12, 2019 · 1 comment
Open

Is there a proxy method? #8

laddie132 opened this issue Apr 12, 2019 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@laddie132
Copy link

Because of my specific network environment, I have to use a proxy to access the internet. I haven't see any method in this project. Can you give me some advice? Thanks!

@VictorSanh VictorSanh added the help wanted Extra attention is needed label Apr 16, 2019
@Ankur3107
Copy link

Hi,

You can set proxy (environment variable) using os module.

import os
os.environ['HTTP_PROXY'] = os.environ['http_proxy'] = 'http://http-connect-proxy:3128/'
os.environ['HTTPS_PROXY'] = os.environ['https_proxy'] = 'http://http-connect-proxy:3128/'
os.environ['NO_PROXY'] = os.environ['no_proxy'] = '127.0.0.1,localhost,.local'

Then run knockknock functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants