ballyregan-1.0.6


توضیحات

Find fetch & validate free proxies fast.
ویژگی مقدار
سیستم عامل -
نام فایل ballyregan-1.0.6
نام ballyregan
نسخه کتابخانه 1.0.6
نگهدارنده []
ایمیل نگهدارنده []
نویسنده idandaniel
ایمیل نویسنده idandaniel12@gmail.com
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/ballyregan/
مجوز Apache License, Version 2.0
<div align="center"> <img src="https://user-images.githubusercontent.com/71208042/226755154-ed482978-89a3-4d2b-8a49-78f6ca07c290.png" alt="Ballyregan" width=550/> <h3><em>Find fetch & validate free proxies fast.</em></h3> <p> <a href="https://pypi.org/project/ballyregan" target="_blank"> <img src="https://img.shields.io/pypi/v/ballyregan?label=pypi%20package" alt="Package version"> </a> <a href="https://pypi.org/project/ballyregan" target="_blank"> <img src="https://img.shields.io/pypi/pyversions/ballyregan.svg?color=%2334D058" alt="Supported Python versions"> </a> <a href="https://pypi.org/project/ballyregan" target="_blank"> <img src="https://img.shields.io/badge/license-Apache%202.0-yellow" alt="License: Apache 2.0"> </a> </p> </div> --- Ballyregan is a super fast proxy fetcher. <br> It provides a python package and an easy-to-use CLI to help you fetch <bFree Tested Proxies</b> fast, and keep your privacy. <br> --- Key features: * **Fetch** free tested proxies super fast using the [ProxyFetcher](https://github.com/idandaniel/ballyregan/blob/main/src/ballyregan/fetcher.py) * **Validate** your own proxies using the [ProxyValidator](https://github.com/idandaniel/ballyregan/blob/main/src/ballyregan/validator.py) * **Filter** custom proxy list by protocol & anonymity using the [ProxyFilterer](https://github.com/idandaniel/ballyregan/blob/main/src/ballyregan/filterer.py) --- ## How does it work? When you use the ProxyFetcher to fetch a proxy, it performs several steps: 1. Gather all the available proxies from a list of built-in providers (each provider gathers its own and returns it to the fetcher). - > Provider - any website that serves free proxy lists (e.g https://free-proxy-list.net). 2. Filter all the gathered proxies by the given protocols and anonymities (if exist). 3. Validate the filtered proxies and return them. <br> > **Note** <br> > You can write and append your own custom providers and pass them to the ProxyFetcher class as an attribute. <br> > Every custom proxy provider must implement the [IProxyProvider](https://github.com/idandaniel/ballyregan/blob/main/src/ballyregan/providers/interface.py) base interface. <br> ## Behind the scenes Fetching a proxy is an [IO bound operation](https://en.wikipedia.org/wiki/I/O_bound) that depends on the network. A common approach for this problem is performing your network requests async. <br> After digging a bit, and testing Threads, Greenlets, and async operations, we decided to go the async way. <br> To perform async HTTP requests, ballyregan uses [aiohttp](https://docs.aiohttp.org/en/stable/) and [asyncio](https://docs.python.org/3/library/asyncio.html), as <em>"asyncio is often a perfect fit for IO-bound and high-level structured network code."</em> (from asyncio docs). <br> By using the power of async HTTP requests, ballyregan can validate thousands of proxies really fast. <br>it to the ProxyFetcher class as an attribute. <br> > Every custom proxy provider must implement the [IProxyProvider](https://github.com/idandaniel/ballyregan/blob/main/src/ballyregan/providers/interface.py) base interface. --- ## Install All you need to do is install the package from pypi, and it will automatically install the CLI for you. ```sh pip install ballyregan ``` ## Usage ### 📦 Package #### Create a fetcher instance ```python from ballyregan import ProxyFetcher # Setting the debug mode to True, defaults to False fetcher = ProxyFetcher(debug=True) ``` #### Get one proxy ```python proxy = fetcher.get_one() print(proxy) ``` #### Get multiple proxies ```python proxies = fetcher.get(limit=4) print(proxies) ``` #### Get proxies by filters ```python from ballyregan.models import Protocols, Anonymities proxies = fetcher.get( limit=4, protocols=[Protocols.HTTPS, Protocols.SOCKS5], anonymities=[Anonymities.ELITE] ) print(proxies) ``` ### 💻 CLI #### Need some help? ```sh ballyregan get --help ``` #### Get one proxy ```sh ballyregan get ``` #### Get all proxies ```sh ballyregan get --all ``` #### Use debug mode ```sh ballyregan --debug get [OPTIONS] ``` #### Format output to json ```sh ballyregan get -o json ``` #### Get proxies by limit ```sh ballyregan get -l 4 ``` #### Get proxies by filters ```sh ballyregan get -l 4 -p https -p socks5 -a elite ``` --- ## 📝 License Copyright © 2022 [Idan Daniel](https://github.com/idandaniel).<br /> This project is [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) licensed.


نیازمندی

مقدار نام
>=1.5.0,<2.0.0 pandas
>=1.10.2,<2.0.0 pydantic
>=0.6.0,<0.7.0 loguru
>=15.1.1,<16.0.0 Faker
>=4.9.1,<5.0.0 lxml
>=8.1.3,<9.0.0 click
>=3.4.1,<4.0.0 prettytable
>=0.6.1,<0.7.0 typer[all]
>=0.0.1,<0.0.2 update
>=3.8.3,<4.0.0 aiohttp
>=0.1.2,<0.2.0 aiohttp-proxy
>=1.1,<2.0 html5lib
>=2.28.1,<3.0.0 requests
>=0.0.1,<0.0.2 bs4
>=0.4.10,<0.5.0 strenum


زبان مورد نیاز

مقدار نام
>=3.9,<4.0 Python


نحوه نصب


نصب پکیج whl ballyregan-1.0.6:

    pip install ballyregan-1.0.6.whl


نصب پکیج tar.gz ballyregan-1.0.6:

    pip install ballyregan-1.0.6.tar.gz