.. 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는 여러 소스에서 공개 프록시를 비동기적으로 찾고 동시에 확인하는 오픈 소스 도구입니다.
.. * 검색된 프록시를 사용자 지정 형식의 파일로 저장합니다.
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 Examples
Find
""""
미국에서 익명성 수준이 높은 HTTP(S) 프록시 10개를 찾아 표시합니다:
.. 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개를 찾아 파일에 저장합니다:
.. 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 <명령> --help`` 를 실행하세요.
Basic code example
작동하는 HTTP(S) 프록시 10개를 찾아 표시합니다:
.. 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 'Add some feature'git push origin my-new-featureLicensed under the Apache License, Version 2.0
이 제품은 MaxMind가 제작한 GeoLite2 데이터를 포함하며, 다음에서 제공됩니다. http://www.maxmind.com <http://www.maxmind.com>_.