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

About Setting Proxy #76

Closed
SYFH opened this issue Feb 18, 2018 · 2 comments
Closed

About Setting Proxy #76

SYFH opened this issue Feb 18, 2018 · 2 comments

Comments

@SYFH
Copy link

SYFH commented Feb 18, 2018

Configuration file how to set the proxy?

@mikf
Copy link
Owner

mikf commented Feb 18, 2018

There is currently no actual config or command-line option to specify a proxy server, but you can set the HTTP_PROXY and HTTPS_PROXY environment variables and the underlying Requests library will use these.
For example:

# on unix-like systems
export HTTP_PROXY="http://10.10.1.10:3128"
# on windows
set http_proxy="http://10.10.1.10:3128"

mikf added a commit that referenced this issue Feb 19, 2018
- '--proxy' as command-line argument
- 'extractor.*.proxy' as config option
@mikf
Copy link
Owner

mikf commented Feb 19, 2018

Explicit proxy configuration done.
You can now set the proxy option in your config files (general or per-extractor) or just use the --proxy command-line argument.

For the config option you can either use a single string ("http://10.10.1.10:3128") or specify a different proxy URL per URI scheme:

{
    "http": "http://10.10.1.10:3128",
    "https": "http://10.10.1.10:1080"
}

@mikf mikf closed this as completed Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants