
Proxy [Buscador | Verificador | Servidor]. HTTP(S) y SOCKS 🎭
.. image:: https://img.shields.io/pypi/v/proxybroker.svg?style=flat-square :target: https://pypi.python.org/pypi/proxybroker/ .. image:: https://img.shields.io/travis/constverum/ProxyBroker.svg?style=flat-square :target: https://travis-ci.org/constverum/ProxyBroker .. image:: https://img.shields.io/pypi/wheel/proxybroker.svg?style=flat-square :target: https://pypi.python.org/pypi/proxybroker/ .. image:: https://img.shields.io/pypi/pyversions/proxybroker.svg?style=flat-square :target: https://pypi.python.org/pypi/proxybroker/ .. image:: https://img.shields.io/pypi/l/proxybroker.svg?style=flat-square :target: https://pypi.python.org/pypi/proxybroker/
ProxyBroker es una herramienta de código abierto que encuentra asincrónicamente proxies públicos de múltiples fuentes y los verifica concurrentemente.
.. * Save found proxies to a file in custom format.
aiohttp <https://pypi.python.org/pypi/aiohttp>_aiodns <https://pypi.python.org/pypi/aiodns>_maxminddb <https://pypi.python.org/pypi/maxminddb>_Para instalar la última versión estable desde pypi:
.. code-block:: bash
$ pip install proxybroker
La última versión de desarrollo se puede instalar directamente desde GitHub:
.. code-block:: bash
$ pip install -U git+https://github.com/constverum/ProxyBroker.git
Ejemplos de CLI
Buscar
""""""
Buscar y mostrar 10 proxies HTTP(S) de Estados Unidos con alto nivel de anonimato:
.. code-block:: bash
$ proxybroker find --types HTTP HTTPS --lvl High --countries US --strict -l 10
.. image:: https://raw.githubusercontent.com/constverum/ProxyBroker/master/docs/source/_static/cli_find_example.gif
Capturar
""""""""
Buscar y guardar en un archivo 10 proxies de EE.UU. (sin verificar):
.. code-block:: bash
$ proxybroker grab --countries US --limit 10 --outfile ./proxies.txt
.. image:: https://raw.githubusercontent.com/constverum/ProxyBroker/master/docs/source/_static/cli_grab_example.gif
Servir
""""""
Ejecutar un servidor proxy local que distribuye las solicitudes entrantes a un grupo de proxies HTTP(S) encontrados con alto nivel de anonimato:
.. code-block:: bash
$ proxybroker serve --host 127.0.0.1 --port 8888 --types HTTP HTTPS --lvl High
.. image:: https://raw.githubusercontent.com/constverum/ProxyBroker/master/docs/source/_static/cli_serve_example.gif
| Ejecuta ``proxybroker --help`` para más información sobre las opciones disponibles.
| Ejecuta ``proxybroker <comando> --help`` para más información sobre un comando.
Ejemplo básico de código
Buscar y mostrar 10 proxies HTTP(S) funcionales:
.. code-block:: python
import asyncio
from proxybroker import Broker
async def show(proxies):
while True:
proxy = await proxies.get()
if proxy is None: break
print('Found proxy: %s' % proxy)
proxies = asyncio.Queue()
broker = Broker(proxies)
tasks = asyncio.gather(
broker.find(types=['HTTP', 'HTTPS'], limit=10),
show(proxies))
loop = asyncio.get_event_loop()
loop.run_until_complete(tasks)
Más ejemplos <https://proxybroker.readthedocs.io/en/latest/examples.html>_.
https://proxybroker.readthedocs.io/
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureLicenciado bajo la Licencia Apache, Versión 2.0
Este producto incluye datos de GeoLite2 creados por MaxMind, disponible desde http://www.maxmind.com <http://www.maxmind.com>_.