-
-
Notifications
You must be signed in to change notification settings - Fork 87
How to set proxy in requests. #59
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
Comments
Hey, Due to less documentation following few hyperparameters is still not known.
So, if I have my Proxy 10.89.67.00 and port is 8190 then I'll use: |
@mdrijwan123 what about proxy with |
@anicolaspp hey if you just search: |
Uh oh!
There was an error while loading. Please reload this page.
I want to fetch some data with requests and it's working fine. But in some cases I want to use the proxy.
in Python requests option is:
proxy = "{"http":"http://URL"}"
r = requests.get(URL,proxy = proxy) # and it works
But in requests scala, I am using the same thing. and getting errors:
found: String
[error] required: (String, Int)
[error] val content = requests.get(URL, headers = Map("Content-Type" -> "application/json"), proxy = proxy)
I don't know what is the required parameter (String, Int) that I need to pass.
If anybody found the same issue and got solved please help.
The text was updated successfully, but these errors were encountered: