Skip to main content

A Python tool for making HTTP requests with proxy rotation.

Project description

progzee

Progzee is a Python library for simplifying IP proxy usage in HTTP requests, with proxy rotation. It simplifies handling proxies for web scraping, API interaction, and more.

GitHub Repo stars License

Key Features:

  • IP Proxy rotation.
  • Config file support for easy setup.
  • CLI support for quick tasks.

Installation

Install Progzee using pip:

pip install progzee

Usage with proxies passed in constructor:

from progzee import Progzee

# Initialize with proxies explicitly
proxies = ["http://proxy1:port", "http://proxy2:port"]
pz = Progzee(proxies=proxies)

# Make a request
response = pz.get("https://example.com")
print(response.text)

Usage with config.ini:

from progzee import Progzee

# Initialize with config file
pz = Progzee(config_file="config.ini")

CLI Usage:

# Update proxies from a config file
progzee update-proxies --config "config.ini"

# Fetch data from a URL
progzee fetch --url "https://example.com"

An example of a config.ini file:

[progzee]
proxies = http://proxy1:port, http://proxy2:port
timeout_min = 5
timeout_max = 15

Error handling

Progzee automatically retries failed requests with the next proxy in the rotation.

Validate your proxies

Make sure that you're using valid proxies that you own, or from trusted vendors. One of the trusted vendors you can use is ProxyScrape.

License

Progzee is licensed under the Apache License 2.0. See LICENSE for more details.

⚠️ DISCLAIMER ⚠️

This tool is intended for ethical use cases only, including educational purposes, testing, and legitimate API interactions.

The tool is provided as-is, without any warranty. The author is not responsible for any damages or legal issues arising from its use.

Users are responsible for ensuring their usage complies with the Terms of Service of the APIs they interact with. Misuse of this tool, including but not limited to scraping without permission, bypassing rate limits, or engaging in malicious activities, is strictly prohibited.

By using this tool, you agree to use it responsibly and in compliance with all applicable laws and regulations.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

progzee-0.1.3.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

progzee-0.1.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file progzee-0.1.3.tar.gz.

File metadata

  • Download URL: progzee-0.1.3.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for progzee-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4a7c3182b8913126e4b27a549375af88ac6019b311136f1c2a9f46e7f4a5ddb1
MD5 12ddc61ff8ec51729f3b068b558efb0c
BLAKE2b-256 a5adfd3883929b5b2447e05b27801a4e273897e8abbe5825679299ca20dcf8af

See more details on using hashes here.

File details

Details for the file progzee-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: progzee-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for progzee-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2a59ad52894026492e3d7b2bd02fe2df16463c5f2305c0483736179f9510e082
MD5 95a84c7eb4d8b8f4523bde0dd6af1f5c
BLAKE2b-256 54dcb95e0c25b45f23cd52eef24e8d4b35b213d524c3ff3b1d11455615fab14a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page