proxy-manager-g4


Nameproxy-manager-g4 JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/Genzo4/proxy_manager
SummaryProxy Manager
upload_time2023-01-30 04:43:30
maintainer
docs_urlNone
authorGenzo
requires_python>=3.6
licenseMIT
keywords proxy proxy_manager manager proxy-manager proxymanager g4
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![Language](https://img.shields.io/badge/English-brigthgreen)

# Proxy Manager

![PyPI](https://img.shields.io/pypi/v/proxy-manager-g4)
![PyPI - License](https://img.shields.io/pypi/l/proxy-manager-g4)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/proxy-manager-g4)

Proxy manager to download a list of proxy servers from the Internet with the required parameters 
(protocol and degree of anonymity) and work with loading servers (for example, getting a random
proxy servers from this list).

***

## Installation

### Package Installation from PyPi

```bash
$ pip3 install proxy-manager-g4
```

### Package Installation from Source Code

The source code is available on [GitHub](https://github.com/Genzo4/proxy_manager).  
Download and install the package.

```bash
$ git clone https://github.com/Genzo4/proxy_manager
$ cd proxy_manager
$ pip3 install .
```

***

## Basic usage

Import:
```python
from proxy_manager_g4 import ProxyManager
from proxy_manager_g4.consts import PROTOCOL_HTTPS
```

We create an instance of the proxy manager. At the same time, loading a list of proxy servers from the Internet 
with the required parameters (protocol and degree of anonymity).
```python
proxy_manager = ProxyManager(protocol=PROTOCOL_HTTPS, anonymity=True)
```

Get random proxy:
```python
proxy = proxy_manager.get_random()
```

When getting a random proxy server multiple times, proxy manager will track the number of uses of each
proxy for uniform delivery.  

Using the received proxy server:
```python
proxy.ip                # "1.2.3.4"
proxy.port              # 8080
proxy.get_ip_port()     # "1.2.3.4:8080"
print(proxy)            # "1.2.3.4:8080"
```

Usage example in file minitest.py

[Changelog](https://github.com/Genzo4/proxy_manager/blob/main/CHANGELOG.md)

***

The list of proxy servers is loaded from 
- [https://github.com/fate0/proxylist/](https://github.com/fate0/proxylist/)
- [https://github.com/clarketm/proxy-list/](https://github.com/clarketm/proxy-list/)

***

![Language](https://img.shields.io/badge/Русский-brigthgreen)

# Proxy Manager

![PyPI](https://img.shields.io/pypi/v/proxy-manager-g4)
![PyPI - License](https://img.shields.io/pypi/l/proxy-manager-g4)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/proxy-manager-g4)

Прокси менеджер для загрузки из интернета списка прокси серверов с требуемыми параметрами 
(протокол и степень анонимности) и работы с загруженными серверами (например, получение случайного 
прокси-сервера из данного списка).

***

## Установка

### Установка пакета с PyPi

```bash
$ pip3 install proxy-manager-g4
```

### Установка пакета из исходного кода

Исходный код размещается на [GitHub](https://github.com/Genzo4/proxy_manager).  
Скачайте его и установите пакет:

```bash
$ git clone https://github.com/Genzo4/proxy_manager
$ cd proxy_manager
$ pip3 install .
```

***

## Использование

Подключаем:
```python
from proxy_manager_g4 import ProxyManager
from proxy_manager_g4.consts import PROTOCOL_HTTPS
```

Создаём экземпляр прокси менеджера. При этом происходит загрузка списка прокси-серверов из интернета 
с требуемыми параметрами: протокол и степень анонимности.
```python
proxy_manager = ProxyManager(protocol=PROTOCOL_HTTPS, anonymity=True)
```

Получение случайного прокси-сервера из списка:
```python
proxy = proxy_manager.get_random()
```
При многократном получении случайного прокси-сервера, прокси менеджер будет отслеживать количество использований 
каждого прокси для равномерной выдачи.  

Использование полученного прокси-сервера:
```python
proxy.ip                # "1.2.3.4"
proxy.port              # 8080
proxy.get_ip_port()     # "1.2.3.4:8080"
print(proxy)            # "1.2.3.4:8080"
```

Пример использования см. в файле minitest.py

[Changelog](https://github.com/Genzo4/proxy_manager/blob/main/CHANGELOG.md)

***

Загрузка списка прокси-серверов осуществляется с 
- [https://github.com/fate0/proxylist/](https://github.com/fate0/proxylist/)
- [https://github.com/clarketm/proxy-list/](https://github.com/clarketm/proxy-list/)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Genzo4/proxy_manager",
    "name": "proxy-manager-g4",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "proxy,proxy_manager,manager,proxy-manager,proxymanager,g4",
    "author": "Genzo",
    "author_email": "genzo@bk.ru",
    "download_url": "https://files.pythonhosted.org/packages/79/ef/b4457d5c7a6270075b5413effdb63648de37b93e9b3adab810a0100c4673/proxy_manager_g4-1.1.0.tar.gz",
    "platform": null,
    "description": "![Language](https://img.shields.io/badge/English-brigthgreen)\r\n\r\n# Proxy Manager\r\n\r\n![PyPI](https://img.shields.io/pypi/v/proxy-manager-g4)\r\n![PyPI - License](https://img.shields.io/pypi/l/proxy-manager-g4)\r\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/proxy-manager-g4)\r\n\r\nProxy manager to download a list of proxy servers from the Internet with the required parameters \r\n(protocol and degree of anonymity) and work with loading servers (for example, getting a random\r\nproxy servers from this list).\r\n\r\n***\r\n\r\n## Installation\r\n\r\n### Package Installation from PyPi\r\n\r\n```bash\r\n$ pip3 install proxy-manager-g4\r\n```\r\n\r\n### Package Installation from Source Code\r\n\r\nThe source code is available on [GitHub](https://github.com/Genzo4/proxy_manager).  \r\nDownload and install the package.\r\n\r\n```bash\r\n$ git clone https://github.com/Genzo4/proxy_manager\r\n$ cd proxy_manager\r\n$ pip3 install .\r\n```\r\n\r\n***\r\n\r\n## Basic usage\r\n\r\nImport:\r\n```python\r\nfrom proxy_manager_g4 import ProxyManager\r\nfrom proxy_manager_g4.consts import PROTOCOL_HTTPS\r\n```\r\n\r\nWe create an instance of the proxy manager. At the same time, loading a list of proxy servers from the Internet \r\nwith the required parameters (protocol and degree of anonymity).\r\n```python\r\nproxy_manager = ProxyManager(protocol=PROTOCOL_HTTPS, anonymity=True)\r\n```\r\n\r\nGet random proxy:\r\n```python\r\nproxy = proxy_manager.get_random()\r\n```\r\n\r\nWhen getting a random proxy server multiple times, proxy manager will track the number of uses of each\r\nproxy for uniform delivery.  \r\n\r\nUsing the received proxy server:\r\n```python\r\nproxy.ip                # \"1.2.3.4\"\r\nproxy.port              # 8080\r\nproxy.get_ip_port()     # \"1.2.3.4:8080\"\r\nprint(proxy)            # \"1.2.3.4:8080\"\r\n```\r\n\r\nUsage example in file minitest.py\r\n\r\n[Changelog](https://github.com/Genzo4/proxy_manager/blob/main/CHANGELOG.md)\r\n\r\n***\r\n\r\nThe list of proxy servers is loaded from \r\n- [https://github.com/fate0/proxylist/](https://github.com/fate0/proxylist/)\r\n- [https://github.com/clarketm/proxy-list/](https://github.com/clarketm/proxy-list/)\r\n\r\n***\r\n\r\n![Language](https://img.shields.io/badge/\u0420\u0443\u0441\u0441\u043a\u0438\u0439-brigthgreen)\r\n\r\n# Proxy Manager\r\n\r\n![PyPI](https://img.shields.io/pypi/v/proxy-manager-g4)\r\n![PyPI - License](https://img.shields.io/pypi/l/proxy-manager-g4)\r\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/proxy-manager-g4)\r\n\r\n\u041f\u0440\u043e\u043a\u0441\u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0441 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \r\n(\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442\u0438) \u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u043c\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \r\n\u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u0437 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430).\r\n\r\n***\r\n\r\n## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\r\n\r\n### \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u0430 \u0441 PyPi\r\n\r\n```bash\r\n$ pip3 install proxy-manager-g4\r\n```\r\n\r\n### \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430\r\n\r\n\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043d\u0430 [GitHub](https://github.com/Genzo4/proxy_manager).  \r\n\u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0435\u0433\u043e \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043f\u0430\u043a\u0435\u0442:\r\n\r\n```bash\r\n$ git clone https://github.com/Genzo4/proxy_manager\r\n$ cd proxy_manager\r\n$ pip3 install .\r\n```\r\n\r\n***\r\n\r\n## \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\r\n\r\n\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c:\r\n```python\r\nfrom proxy_manager_g4 import ProxyManager\r\nfrom proxy_manager_g4.consts import PROTOCOL_HTTPS\r\n```\r\n\r\n\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043f\u0440\u043e\u043a\u0441\u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \r\n\u0441 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438: \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442\u0438.\r\n```python\r\nproxy_manager = ProxyManager(protocol=PROTOCOL_HTTPS, anonymity=True)\r\n```\r\n\r\n\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430:\r\n```python\r\nproxy = proxy_manager.get_random()\r\n```\r\n\u041f\u0440\u0438 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u0440\u043e\u043a\u0441\u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0439 \r\n\u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u043a\u0441\u0438 \u0434\u043b\u044f \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0439 \u0432\u044b\u0434\u0430\u0447\u0438.  \r\n\r\n\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440\u0430:\r\n```python\r\nproxy.ip                # \"1.2.3.4\"\r\nproxy.port              # 8080\r\nproxy.get_ip_port()     # \"1.2.3.4:8080\"\r\nprint(proxy)            # \"1.2.3.4:8080\"\r\n```\r\n\r\n\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043c. \u0432 \u0444\u0430\u0439\u043b\u0435 minitest.py\r\n\r\n[Changelog](https://github.com/Genzo4/proxy_manager/blob/main/CHANGELOG.md)\r\n\r\n***\r\n\r\n\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \r\n- [https://github.com/fate0/proxylist/](https://github.com/fate0/proxylist/)\r\n- [https://github.com/clarketm/proxy-list/](https://github.com/clarketm/proxy-list/)\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Proxy Manager",
    "version": "1.1.0",
    "split_keywords": [
        "proxy",
        "proxy_manager",
        "manager",
        "proxy-manager",
        "proxymanager",
        "g4"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ab9ca838602a2b50905fce98fa323269857742c03b4410be80aa0ddc0009edac",
                "md5": "0e6d5a29d8723966eb4eb02ba97ef53e",
                "sha256": "503b02d3bf0c5ef5e5178f8426f697d5d5c015b827e464a065caeeeb5a972cff"
            },
            "downloads": -1,
            "filename": "proxy_manager_g4-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0e6d5a29d8723966eb4eb02ba97ef53e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 7152,
            "upload_time": "2023-01-30T04:43:22",
            "upload_time_iso_8601": "2023-01-30T04:43:22.824619Z",
            "url": "https://files.pythonhosted.org/packages/ab/9c/a838602a2b50905fce98fa323269857742c03b4410be80aa0ddc0009edac/proxy_manager_g4-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "79efb4457d5c7a6270075b5413effdb63648de37b93e9b3adab810a0100c4673",
                "md5": "77cabfb5bdd4ac79e8c0b3a180018597",
                "sha256": "b55bdbfa0e4122c11138243d956753b20662e156e7c3b6f019827f580d981d05"
            },
            "downloads": -1,
            "filename": "proxy_manager_g4-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "77cabfb5bdd4ac79e8c0b3a180018597",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6623,
            "upload_time": "2023-01-30T04:43:30",
            "upload_time_iso_8601": "2023-01-30T04:43:30.099098Z",
            "url": "https://files.pythonhosted.org/packages/79/ef/b4457d5c7a6270075b5413effdb63648de37b93e9b3adab810a0100c4673/proxy_manager_g4-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-30 04:43:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Genzo4",
    "github_project": "proxy_manager",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "proxy-manager-g4"
}
        
Elapsed time: 0.04589s