proxlist


Nameproxlist JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttp://github.com/Justintime50/proxlist
SummaryRetrieve free, open-source proxy servers.
upload_time2024-10-10 21:59:21
maintainerNone
docs_urlNone
authorJustintime50
requires_python<4,>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            <div align="center">

# Proxlist

Retrieve free, open-source proxy servers.

[![Build Status](https://github.com/Justintime50/proxlist/workflows/build/badge.svg)](https://github.com/Justintime50/proxlist/actions)
[![Coverage Status](https://coveralls.io/repos/github/Justintime50/proxlist/badge.svg?branch=main)](https://coveralls.io/github/Justintime50/proxlist?branch=main)
[![PyPi](https://img.shields.io/pypi/v/proxlist)](https://pypi.org/project/proxlist)
[![Licence](https://img.shields.io/github/license/Justintime50/proxlist)](LICENSE)

<img src="https://raw.githubusercontent.com/justintime50/assets/main/src/proxlist/showcase.png" alt="Showcase">

</div>

Finding and storing a list of proxies can be taxing - especially ones that are free and actually work. `proxlist` will validate and return a rotating random proxy so you don't need to keep a list of proxies or ensure the list is still valid.

Proxies are returned in the form of strings (eg: `ip:port`).

These proxies come from all over the world and may not be performant for a production application. Instead, you should use a paid proxy service or a self-hosted solution. This package is intended for testing purposes and there are no guarantees about where the data sent through these proxies goes or how it's handled. The list and quality of proxies rotates rapidly - your mileage may vary.

## Install

```bash
# Install tool
pip3 install proxlist

# Install locally
just install
```

## Usage

```python
import proxlist
import requests

# Get a random proxy
proxy = proxlist.random_proxy()

# You can also filter proxies by country or google_verified
proxies = proxlist.random_proxy(country='US', google_verified=True)

# Alternatively, you could get the entire list of current proxies (and could optionally filter them like above)
proxies = proxlist.list_proxies()

# Depending on the proxy and your location in the world, you may need to adjust the timeout
# to provide the proxy enough time to route your request. Additionally, some of these proxies
# may be unstable - adding retry logic is highly recommended. Caching a working proxy is also
# a good idea with a fallback of retrying if the cached proxy no longer works or times out.
response = requests.get(
    'https://google.com',
    proxies={
        'http': f'http://{proxy}',
        'https': f'http://{proxy}',
    },
    timeout=10,
)

print(response.text)
```

## Development

```bash
# Get a comprehensive list of development tools
just --list
```

            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/Justintime50/proxlist",
    "name": "proxlist",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Justintime50",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/3d/7b/ac2a9a8504190f2eb505987f617ea850ebef19dc3760ac1d5919d9efd2c1/proxlist-1.1.0.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n\n# Proxlist\n\nRetrieve free, open-source proxy servers.\n\n[![Build Status](https://github.com/Justintime50/proxlist/workflows/build/badge.svg)](https://github.com/Justintime50/proxlist/actions)\n[![Coverage Status](https://coveralls.io/repos/github/Justintime50/proxlist/badge.svg?branch=main)](https://coveralls.io/github/Justintime50/proxlist?branch=main)\n[![PyPi](https://img.shields.io/pypi/v/proxlist)](https://pypi.org/project/proxlist)\n[![Licence](https://img.shields.io/github/license/Justintime50/proxlist)](LICENSE)\n\n<img src=\"https://raw.githubusercontent.com/justintime50/assets/main/src/proxlist/showcase.png\" alt=\"Showcase\">\n\n</div>\n\nFinding and storing a list of proxies can be taxing - especially ones that are free and actually work. `proxlist` will validate and return a rotating random proxy so you don't need to keep a list of proxies or ensure the list is still valid.\n\nProxies are returned in the form of strings (eg: `ip:port`).\n\nThese proxies come from all over the world and may not be performant for a production application. Instead, you should use a paid proxy service or a self-hosted solution. This package is intended for testing purposes and there are no guarantees about where the data sent through these proxies goes or how it's handled. The list and quality of proxies rotates rapidly - your mileage may vary.\n\n## Install\n\n```bash\n# Install tool\npip3 install proxlist\n\n# Install locally\njust install\n```\n\n## Usage\n\n```python\nimport proxlist\nimport requests\n\n# Get a random proxy\nproxy = proxlist.random_proxy()\n\n# You can also filter proxies by country or google_verified\nproxies = proxlist.random_proxy(country='US', google_verified=True)\n\n# Alternatively, you could get the entire list of current proxies (and could optionally filter them like above)\nproxies = proxlist.list_proxies()\n\n# Depending on the proxy and your location in the world, you may need to adjust the timeout\n# to provide the proxy enough time to route your request. Additionally, some of these proxies\n# may be unstable - adding retry logic is highly recommended. Caching a working proxy is also\n# a good idea with a fallback of retrying if the cached proxy no longer works or times out.\nresponse = requests.get(\n    'https://google.com',\n    proxies={\n        'http': f'http://{proxy}',\n        'https': f'http://{proxy}',\n    },\n    timeout=10,\n)\n\nprint(response.text)\n```\n\n## Development\n\n```bash\n# Get a comprehensive list of development tools\njust --list\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Retrieve free, open-source proxy servers.",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "http://github.com/Justintime50/proxlist"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ec66fbbc8cea6edde3af3c0c8a6ae14590e684d1598a2b5962baec9f81246f80",
                "md5": "e16d49133290493b149af6e734ad866e",
                "sha256": "cabdebc9f7ab1f53a80d157d5df336fbfc97a37c9d2585bb7cfeee35df73ca9b"
            },
            "downloads": -1,
            "filename": "proxlist-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e16d49133290493b149af6e734ad866e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.8",
            "size": 5731,
            "upload_time": "2024-10-10T21:59:20",
            "upload_time_iso_8601": "2024-10-10T21:59:20.226199Z",
            "url": "https://files.pythonhosted.org/packages/ec/66/fbbc8cea6edde3af3c0c8a6ae14590e684d1598a2b5962baec9f81246f80/proxlist-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3d7bac2a9a8504190f2eb505987f617ea850ebef19dc3760ac1d5919d9efd2c1",
                "md5": "0be1591c7654c06697113f320e77e7b7",
                "sha256": "f5857e9be161b541b7a00c4d6661851dedbed69356630a0296f27e58d2c4ca10"
            },
            "downloads": -1,
            "filename": "proxlist-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0be1591c7654c06697113f320e77e7b7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.8",
            "size": 6595,
            "upload_time": "2024-10-10T21:59:21",
            "upload_time_iso_8601": "2024-10-10T21:59:21.678925Z",
            "url": "https://files.pythonhosted.org/packages/3d/7b/ac2a9a8504190f2eb505987f617ea850ebef19dc3760ac1d5919d9efd2c1/proxlist-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-10 21:59:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Justintime50",
    "github_project": "proxlist",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "proxlist"
}
        
Elapsed time: 0.63215s