py-proxy-checker


Namepy-proxy-checker JSON
Version 0.2.2 PyPI version JSON
download
home_pagehttps://github.com/yassine20011/py-proxy-checker
SummaryProxy Checker is a python package that allows you to check the validity of a proxy
upload_time2023-01-01 00:45:43
maintainer
docs_urlNone
authorYassine Amjad
requires_python>=3.6
licenseMIT
keywords proxy checker
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # py-proxy-checker

This is a simple python script to check if a proxy is working or not and to check the speed of the proxy.

## Installation

```bash
pip install py-proxy-checker
```

## Usage

```python
from proxychecker import Checker
checker = Checker()

#Check the proxies in the file "proxies.txt"
proxies = checker.check("proxies.txt")
print(proxies)

    {
    ...
    2: {
    'proxy': '77.109.178.218:80',
    'Timeout': 529},
    ...
    }

#Get the information of the proxy
print(checker.info(proxies[2]['proxy']))

    {
        'ip': '210.245.124.131',
        'network': '210.245.112.0/20',
        'version': 'IPv4',
        ...
    }


proxy_list = [proxies[proxy]['proxy'] for proxy in proxies]

#Get the information of each proxy in the list
print(checker.info(proxy_list=proxy_list))

    [
        ...,
        {
        'ip': '210.245.124.131',
        'network': '210.245.112.0/20',
        'version': 'IPv4',
        ...
        },
        ...
    ]
    
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yassine20011/py-proxy-checker",
    "name": "py-proxy-checker",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "proxy checker",
    "author": "Yassine Amjad",
    "author_email": "Yassine.amjad001@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0c/ca/f0bfc5b5e173c6af8ba964d5b9e709edbb8496c122d6d0c998f7a750b5d9/py-proxy-checker-0.2.2.tar.gz",
    "platform": null,
    "description": "# py-proxy-checker\n\nThis is a simple python script to check if a proxy is working or not and to check the speed of the proxy.\n\n## Installation\n\n```bash\npip install py-proxy-checker\n```\n\n## Usage\n\n```python\nfrom proxychecker import Checker\nchecker = Checker()\n\n#Check the proxies in the file \"proxies.txt\"\nproxies = checker.check(\"proxies.txt\")\nprint(proxies)\n\n    {\n    ...\n    2: {\n    'proxy': '77.109.178.218:80',\n    'Timeout': 529},\n    ...\n    }\n\n#Get the information of the proxy\nprint(checker.info(proxies[2]['proxy']))\n\n    {\n        'ip': '210.245.124.131',\n        'network': '210.245.112.0/20',\n        'version': 'IPv4',\n        ...\n    }\n\n\nproxy_list = [proxies[proxy]['proxy'] for proxy in proxies]\n\n#Get the information of each proxy in the list\nprint(checker.info(proxy_list=proxy_list))\n\n    [\n        ...,\n        {\n        'ip': '210.245.124.131',\n        'network': '210.245.112.0/20',\n        'version': 'IPv4',\n        ...\n        },\n        ...\n    ]\n    \n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Proxy Checker is a python package that allows you to check the validity of a proxy",
    "version": "0.2.2",
    "split_keywords": [
        "proxy",
        "checker"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "0c8602019eac9cce4ecf5118a65d30d7",
                "sha256": "43287d77e7d90ea902a9b8d9714edd1eddeda967cad94d095e9cf3a8b4d09ad8"
            },
            "downloads": -1,
            "filename": "py_proxy_checker-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0c8602019eac9cce4ecf5118a65d30d7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3389,
            "upload_time": "2023-01-01T00:45:42",
            "upload_time_iso_8601": "2023-01-01T00:45:42.102716Z",
            "url": "https://files.pythonhosted.org/packages/7a/07/ada31c2e597e6c708c319db155365645f8b7756b7e75b88ba340139e6927/py_proxy_checker-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "7f1814f4e4f936e5771902fec7d2fb08",
                "sha256": "829eda148526418e80383d1f9912acd7b6da6277c3725ebbf7a502ab4d0eeca5"
            },
            "downloads": -1,
            "filename": "py-proxy-checker-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "7f1814f4e4f936e5771902fec7d2fb08",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2930,
            "upload_time": "2023-01-01T00:45:43",
            "upload_time_iso_8601": "2023-01-01T00:45:43.733959Z",
            "url": "https://files.pythonhosted.org/packages/0c/ca/f0bfc5b5e173c6af8ba964d5b9e709edbb8496c122d6d0c998f7a750b5d9/py-proxy-checker-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-01 00:45:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "yassine20011",
    "github_project": "py-proxy-checker",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "py-proxy-checker"
}
        
Elapsed time: 0.03616s