python-anticaptcha icon indicating copy to clipboard operation
python-anticaptcha copied to clipboard

Managing a proxy server

Open ad-m opened this issue 8 years ago • 4 comments

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.

ad-m avatar Sep 09 '17 16:09 ad-m

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.

fake-name avatar Feb 03 '19 08:02 fake-name

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

ad-m avatar Feb 03 '19 09:02 ad-m

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

fake-name avatar Feb 03 '19 09:02 fake-name

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.

ad-m avatar Feb 03 '19 10:02 ad-m