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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file progzee-0.1.1.tar.gz.
File metadata
- Download URL: progzee-0.1.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59b29bb19eb4c0d3981def343c12578e01fe079035a16ce608de81413f85bd7c
|
|
| MD5 |
24bdc5b9abbcd618b93b05cfecc8e1a4
|
|
| BLAKE2b-256 |
da9fdce2d5f6ad6a1701854b73ffb3dd16f9b31f7ab491d7b1a0d1787e752891
|
File details
Details for the file progzee-0.1.1-py3-none-any.whl.
File metadata
- Download URL: progzee-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79efc0869ee5c94e94c1fe103a9acd39b0aff8bcaac7e6fdd748f22e3c264b90
|
|
| MD5 |
d8bcab5af74d1e3f182b5f205a9cdb68
|
|
| BLAKE2b-256 |
fd8b463075f6eb6e521c8f4ec8c38cf11384ef75c09b117c053ce5718cbe471b
|