Open ad-m opened 7 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.
@fake-name can you create a pull request to add into README section about community using this library?
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
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.
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.