Skip to main content

Proxy Checker and Saver

Overview

This Python script tests a list of proxies to determine which ones are working and saves the working proxies to an output file. It uses aiohttp for asynchronous HTTP requests, allowing it to efficiently check multiple proxies in parallel.

Features

  • Asynchronously checks a list of proxies.
  • Tests proxies against a user-defined URL.
  • Supports authentication in proxy URLs.
  • Saves working proxies to a specified output file.
  • Provides real-time progress updates on the command line.

Requirements

  • Python 3.7 or higher
  • pip library

You can install the required library using pip:

pip install pcheck

Usage

pcheck -i INPUT_FILE -o OUTPUT_FILE [-u TEST_URL] [-t TIMEOUT]

Command-Line Arguments

    -i, --input: Path to the input file containing proxies. Each proxy should be on a new line.
    -o, --output: Path to the output file where working proxies will be saved.
    -u, --url: URL to test proxies against (default is http://httpbin.org/ip).
    -t, --timeout: Timeout for proxy requests in seconds (default is 5).

Example

To test proxies listed in proxies.txt, save working proxies to working_proxies.txt, and test against http://example.com with a timeout of 10 seconds:

pcheck -i proxies.txt -o working_proxies.txt -u http://example.com -t 10

Proxy Format

The script supports proxies in the following formats:

    username:password@host:port
    host:port:username:password

Make sure to provide proxies in one of these formats to ensure proper parsing.

Output

The script writes the working proxies to the specified output file, with each proxy on a new line. It also displays real-time progress on the console, including the number of working and invalid proxies, checks per second, and the number of remaining proxies.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or issues, please contact rootcode@duck.com or open an issue here.

Metadata

Release files for pcheck 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pcheck 0.1.5
File Size Uploaded Provenance Actions
pcheck-0.1.5.tar.gz 4.5 kB Without provenance Details for pcheck-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pcheck 0.1.5
File Interpreter ABI Platform Actions
pcheck-0.1.5-py3-none-any.whl Python 3 none any Details for pcheck-0.1.5-py3-none-any.whl

Total release size: 9.7 kB

Release files / pcheck-0.1.5.tar.gz

Download URL pcheck-0.1.5.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b79026e45e287581803dbd3b08a8c5c72c07141d1b8d6c876f89c957597adcc3
BLAKE2b-256 checksum
How to use checksums
ba9720cd8a77d6246bd6eb66c83439679b9aa348bfefb2c42f1ea69598e0642f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.4

Release files / pcheck-0.1.5-py3-none-any.whl

Download URL pcheck-0.1.5-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7335f3de5018aa998c386034c2e1df2cffe302141d9f1e47a42f60c1053dbf6a
BLAKE2b-256 checksum
How to use checksums
86d6305dc6422e1fe23b827928f3762dc50f9b3328d08ae404d9dbf97362b157
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.4

Security for pcheck 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page