
प्रॉक्सी [खोजकर्ता | जाँचकर्ता | सर्वर]. 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 एक ओपन सोर्स टूल है जो कई स्रोतों से सार्वजनिक प्रॉक्सी को अतुल्यकालिक रूप से खोजता है और उन्हें साथ-साथ जांचता है।
.. * 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>_pypi से नवीनतम स्थिर रिलीज़ स्थापित करने के लिए:
.. code-block:: bash
$ pip install proxybroker
नवीनतम विकास संस्करण सीधे GitHub से स्थापित किया जा सकता है:
.. code-block:: bash
$ pip install -U git+https://github.com/constverum/ProxyBroker.git
CLI उदाहरण
Find
""""
संयुक्त राज्य अमेरिका से उच्च गुमनामी स्तर वाले 10 HTTP(S) प्रॉक्सी खोजें और दिखाएं:
.. 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
Grab
""""
खोजें और बिना जांच के 10 US प्रॉक्सी को एक फ़ाइल में सहेजें:
.. 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
Serve
"""""
एक स्थानीय प्रॉक्सी सर्वर चलाएं जो उच्च गुमनामी स्तर वाले पाए गए HTTP(S) प्रॉक्सी के पूल में आने वाले अनुरोधों को वितरित करता है:
.. 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
| उपलब्ध विकल्पों के बारे में अधिक जानकारी के लिए ``proxybroker --help`` चलाएं।
| किसी कमांड के बारे में अधिक जानकारी के लिए ``proxybroker <command> --help`` चलाएं।
बुनियादी कोड उदाहरण
10 कार्यशील HTTP(S) प्रॉक्सी खोजें और दिखाएं:
.. 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)
अधिक उदाहरण <https://proxybroker.readthedocs.io/en/latest/examples.html>_.
https://proxybroker.readthedocs.io/
git checkout -b my-new-featuregit commit -am 'कुछ सुविधा जोड़ें'git push origin my-new-featureApache लाइसेंस, संस्करण 2.0 के तहत लाइसेंस प्राप्त है
यह उत्पाद MaxMind द्वारा बनाए गए GeoLite2 डेटा को शामिल करता है, जो http://www.maxmind.com <http://www.maxmind.com>_ पर उपलब्ध है।