Name | proxy-checker-httpx JSON |
Version |
0.6.0
JSON |
| download |
home_page | |
Summary | Proxy checker in Python |
upload_time | 2023-05-28 06:10:06 |
maintainer | |
docs_url | None |
author | Maehdakvan |
requires_python | |
license | |
keywords |
proxy
checker
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Proxy Checker (Python)
[![Downloads](https://pepy.tech/badge/proxy-checker-httpx)](https://pepy.tech/project/proxy-checker-httpx)
A proxy checker in Python using Requests.
## Description
The proxy checker takes a proxy as input and uses it to send a request to a proxy judge (a website that outputs the information that was sent to it). If the request succeeds, the proxy checker will use the information it receives from the proxy judge to determine the proxy's:
- Country
- Protocol
- Anonymity
- Speed
## Installation
```console
pip install proxy-checker-httpx
```
## Usage
```python3
from proxy_checker_httpx import ProxyChecker
import asyncio
async def main():
checker = ProxyChecker()
await checker.initialize()
await checker.check_proxy('<ip>:<port>')
return
asyncio.run(main())
```
```json
{
"country": "United States",
"country_code": "US",
"protocols": ["socks4", "socks5"],
"anonymity": "Elite",
"timeout": 1649
}
```
## Parameters
| Name | Type | Default | Description |
| ------------- | ---- | ------- | ---------------------------------------------------- |
| proxy | str | | The proxy to test |
| check_country | bool | True | If `true`, the proxy's country will be looked up |
| check_address | bool | False | If `true`, the proxy's remote address will looked up |
| user | str | None | The proxy's username |
| password | str | None | The proxy's password |
## Requirements
- Python 3.\*
- [Httpx](https://pypi.org/project/httpx/) - A httpx python module \*
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](LICENSE.md)
Raw data
{
"_id": null,
"home_page": "",
"name": "proxy-checker-httpx",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "proxy checker",
"author": "Maehdakvan",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/3b/19/7c70667896efa1db370920ba0f59183c27756fd5ee51cd123ea81377a459/proxy_checker_httpx-0.6.0.tar.gz",
"platform": null,
"description": "# Proxy Checker (Python)\r\n\r\n[![Downloads](https://pepy.tech/badge/proxy-checker-httpx)](https://pepy.tech/project/proxy-checker-httpx)\r\n\r\nA proxy checker in Python using Requests.\r\n\r\n## Description\r\n\r\nThe proxy checker takes a proxy as input and uses it to send a request to a proxy judge (a website that outputs the information that was sent to it). If the request succeeds, the proxy checker will use the information it receives from the proxy judge to determine the proxy's:\r\n\r\n- Country\r\n- Protocol\r\n- Anonymity\r\n- Speed\r\n\r\n## Installation\r\n\r\n```console\r\npip install proxy-checker-httpx\r\n```\r\n\r\n## Usage\r\n\r\n```python3\r\nfrom proxy_checker_httpx import ProxyChecker\r\nimport asyncio\r\n\r\nasync def main():\r\n checker = ProxyChecker()\r\n await checker.initialize()\r\n await checker.check_proxy('<ip>:<port>')\r\n return\r\n\r\nasyncio.run(main())\r\n```\r\n\r\n```json\r\n{\r\n \"country\": \"United States\",\r\n \"country_code\": \"US\",\r\n \"protocols\": [\"socks4\", \"socks5\"],\r\n \"anonymity\": \"Elite\",\r\n \"timeout\": 1649\r\n}\r\n```\r\n\r\n## Parameters\r\n\r\n| Name | Type | Default | Description |\r\n| ------------- | ---- | ------- | ---------------------------------------------------- |\r\n| proxy | str | | The proxy to test |\r\n| check_country | bool | True | If `true`, the proxy's country will be looked up |\r\n| check_address | bool | False | If `true`, the proxy's remote address will looked up |\r\n| user | str | None | The proxy's username |\r\n| password | str | None | The proxy's password |\r\n\r\n## Requirements\r\n\r\n- Python 3.\\*\r\n- [Httpx](https://pypi.org/project/httpx/) - A httpx python module \\*\r\n\r\n## Contributing\r\n\r\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\r\n\r\nPlease make sure to update tests as appropriate.\r\n\r\n## License\r\n\r\n[MIT](LICENSE.md)\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Proxy checker in Python",
"version": "0.6.0",
"project_urls": {
"Source Code": "https://github.com/DedInc/proxy-checker-python"
},
"split_keywords": [
"proxy",
"checker"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "724c7ec6ddfaef253a592258cc0ceab26126082d377ebec5654647ea04018fb7",
"md5": "e812647785f90a4d6d23398d474f921a",
"sha256": "85b4019f026490dd849dbb6fad7cf7cc08f078da053bc415bc55988fb64709d5"
},
"downloads": -1,
"filename": "proxy_checker_httpx-0.6.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e812647785f90a4d6d23398d474f921a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4609,
"upload_time": "2023-05-28T06:10:04",
"upload_time_iso_8601": "2023-05-28T06:10:04.072170Z",
"url": "https://files.pythonhosted.org/packages/72/4c/7ec6ddfaef253a592258cc0ceab26126082d377ebec5654647ea04018fb7/proxy_checker_httpx-0.6.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3b197c70667896efa1db370920ba0f59183c27756fd5ee51cd123ea81377a459",
"md5": "3165cbbaf84f7f33a16a5d8c171eb648",
"sha256": "5379969bb6655593923de7db43c478b2f46760a67a3059f37ae377d60f3fef57"
},
"downloads": -1,
"filename": "proxy_checker_httpx-0.6.0.tar.gz",
"has_sig": false,
"md5_digest": "3165cbbaf84f7f33a16a5d8c171eb648",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4098,
"upload_time": "2023-05-28T06:10:06",
"upload_time_iso_8601": "2023-05-28T06:10:06.511368Z",
"url": "https://files.pythonhosted.org/packages/3b/19/7c70667896efa1db370920ba0f59183c27756fd5ee51cd123ea81377a459/proxy_checker_httpx-0.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-28 06:10:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "DedInc",
"github_project": "proxy-checker-python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "proxy-checker-httpx"
}