
Proxy [Finder | Checker | Server]. HTTP(S) & 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 è uno strumento open source che trova asincronamente proxy pubblici da più fonti e li verifica contemporaneamente.
.. * Salva i proxy trovati in un file con formato personalizzato.
aiohttp <https://pypi.python.org/pypi/aiohttp>_aiodns <https://pypi.python.org/pypi/aiodns>_maxminddb <https://pypi.python.org/pypi/maxminddb>_Per installare l'ultima versione stabile da pypi:
.. code-block:: bash
$ pip install proxybroker
L'ultima versione di sviluppo può essere installata direttamente da GitHub:
.. code-block:: bash
$ pip install -U git+https://github.com/constverum/ProxyBroker.git
Esempi CLI
Trova
"""""
Trova e mostra 10 proxy HTTP(S) dagli Stati Uniti con alto livello di 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
Acquisisci
""""""
Trova e salva in un file 10 proxy US (senza verifica):
.. 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
Servi
"""""
Esegui un server proxy locale che distribuisce le richieste in arrivo a un pool
di proxy HTTP(S) trovati con alto livello di 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
| Esegui ``proxybroker --help`` per maggiori informazioni sulle opzioni disponibili.
| Esegui ``proxybroker <comando> --help`` per maggiori informazioni su un comando.
Esempio di codice base
Trova e mostra 10 proxy HTTP(S) funzionanti:
.. 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)
Altri esempi <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-featureLicenziato sotto la Apache License, Version 2.0
Questo prodotto include dati GeoLite2 creati da MaxMind, disponibili da http://www.maxmind.com <http://www.maxmind.com>_.