
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 ist ein Open-Source-Tool, das asynchron öffentliche Proxys aus mehreren Quellen findet und sie gleichzeitig überprüft.
.. * 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>_Um die letzte stabile Version von pypi zu installieren:
.. code-block:: bash
$ pip install proxybroker
Die neueste Entwicklungsversion kann direkt von GitHub installiert werden:
.. code-block:: bash
$ pip install -U git+https://github.com/constverum/ProxyBroker.git
CLI-Beispiele
Suchen
""""""
Finde und zeige 10 HTTP(S)-Proxys aus den USA mit hoher Anonymitätsstufe an:
.. 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
Sammeln
"""""""
Finde und speichere 10 US-Proxys in einer Datei (ohne Überprüfung):
.. 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
Bereitstellen
"""""""""""""
Führe einen lokalen Proxyserver aus, der eingehende Anfragen an einen Pool von gefundenen HTTP(S)-Proxys mit hoher Anonymitätsstufe verteilt:
.. 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
| Führe ``proxybroker --help`` aus, um weitere Informationen zu den verfügbaren Optionen zu erhalten.
| Führe ``proxybroker <Befehl> --help`` aus, um weitere Informationen zu einem Befehl zu erhalten.
Grundlegendes Codebeispiel
Finde und zeige 10 funktionierende HTTP(S)-Proxys an:
.. 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)
Weitere Beispiele <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-featureLizenziert unter der Apache License, Version 2.0
Dieses Produkt enthält GeoLite2-Daten, die von MaxMind erstellt wurden und unter http://www.maxmind.com <http://www.maxmind.com>_ verfügbar sind.