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
Does read_html() support using a proxy? #224
Comments
rvest (and xml2, which is actually what You can set the global configuration options for httr (such as this) with So something like this should use the proxy configuration for all httr connections. httr::set_config(httr::use_proxy("socks5://proxyhost:port"))) |
Thanks for the clarification. |
Hey Jim, Can confirm that this does not work. The
I can provide user/pass for test if you need it @jimhester |
You are correct, looking at the code again xml2 uses |
Hello, |
I'm doing some work behind a SOCKS5 proxy. I've setup my environment such that I can update or install new packages by setting the proper environment variable (Sys.setenv(http_proxy = "socks://proxyhost:port")).
However, read_html("some url") fails due to not attempting (or failing) to use my proxy.
Does rvest support use of a proxy directly?
It does appear that you can instead pass an httr result, of the form:
read_html(httr::GET("https://cran.r-project.org/src/contrib/", httr::use_proxy("socks5://proxyhost:port")))
The text was updated successfully, but these errors were encountered: