ad-m / python-anticaptcha

Client library for solve captchas with Anticaptcha.com support.
http://python-anticaptcha.readthedocs.io/en/latest/
MIT License
223 stars 51 forks source link

Managing a proxy server #3

Open ad-m opened 7 years ago

ad-m commented 7 years ago

Google accepts IP address mismatch. However, in the future this can be changed.

Anticaptcha supports the connection of workers via a proxy. The library could be responsible for launching a local proxy server for this purpose.

When needed, this will be implemented. Please signal if I missed the change.

fake-name commented 5 years ago

FWIW, I implemented this in a wrapper for captcha solvers in my WebRequest project.

SocksProxy.py is a in-process SOCKS5 proxy. PunchPort.py handles setting up a local UPnP port forward (if needed) when you're behind a NAT.

Standing up a proxy is pretty simple.

It's part of a WTFPL project, so feel free to take bits and pieces.

ad-m commented 5 years ago

@fake-name can you create a pull request to add into README section about community using this library?

fake-name commented 5 years ago

I don't know if I'd recommend anyone use the entire project, really, It's kind of terrible internally (nowadays, people should just use requests), and it's basically developed specifically for a bunch of my web-spider use-cases (and there's no general stable API - it changes to suit my the ongoing needs of my various projects).

The UPnP/Proxy stuff is somewhat more sensibly written, but that can't be said of the internals in general

ad-m commented 5 years ago

Pull requests are welcome, when you have something worth to mention. I see that there are many projects that use my library and I would be happy to catalog them, because they can be a source of inspiration on how to use the library.