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

How do I use proxy? #167

Closed
dexhunter opened this issue Oct 30, 2017 · 3 comments
Closed

How do I use proxy? #167

dexhunter opened this issue Oct 30, 2017 · 3 comments
Labels
enhancement New feature or bug fix

Comments

@dexhunter
Copy link

Hi! I am in a restricted area where poloniex flagged my ip which means I need to click reCAPTCHA in order to query. I have a VPS as proxy server. I know for requests I can add something like

    proxies = {'http': 'socks5://127.0.0.1:1080', #or socks5://<usr>:<pwd>@<addr>:<port>
                   'https': 'socks5://127.0.0.1:1080'}
    requests.get(url, proxies=proxies)

I wonder if there is any more efficient way to bypass this inconvenience? Thank you.

@s4w3d0ff
Copy link
Owner

s4w3d0ff commented Nov 1, 2017

Adding **kwargs to the __call__ method and others then passing **kwargs to the get/post functions should work for a quick fix. Unfortunately I can not create the PR because I am short of time.

s4w3d0ff added a commit that referenced this issue Nov 6, 2017
@s4w3d0ff s4w3d0ff added the enhancement New feature or bug fix label Nov 6, 2017
@s4w3d0ff
Copy link
Owner

s4w3d0ff commented Nov 6, 2017

I created the PR, I am unable to test it at the moment, please let me know if this works for you and I will add it to the next release (when I find the time to create one).

@dexhunter
Copy link
Author

@s4w3d0ff Sorry for the late reply. The PR works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or bug fix
Projects
None yet
Development

No branches or pull requests

2 participants