Free IP Proxy rotator for python
Project description
Swiftshadow
[!WARNING]
Heads up! If you're using versions 1.2.1 or below, please note that version 2.0.0 and above includes breaking changes. Before upgrading, read the documentation to understand the changes and ensure compatibility with your code. If you encounter issues, please review the docs before opening a GitHub issue.
About
Swiftshadow is a lightweight and efficient Python library designed to simplify IP proxy rotation for web scraping, data mining, and other automated tasks. It helps you bypass common challenges like IP bans, rate limits, and detection mechanisms, ensuring smooth and uninterrupted data collection.
Key Features
- Speed: Optimized for fast proxy retrieval and rotation.
- Reliability: Automatically switches to working proxies if one fails.
- Customization: Configure proxy filters, rotation frequency, and caching behavior.
- Low Dependencies: Only one third-party dependency (
requests
), making it easy to use and maintain. - Caching: Built-in caching mechanism to reduce load times and improve performance.
Whether you're a seasoned developer or a beginner, Swiftshadow makes proxy management effortless.
Installation
Install the library using pip:
pip install swiftshadow
Quick Start
Get a Proxy in 2 Lines
Fetch a random proxy with just two lines of code:
from swiftshadow import QuickProxy
print(QuickProxy()) # Output: http://<ip>:<port>
Advanced Usage
For more control, use the ProxyInterface
class:
from swiftshadow.classes import ProxyInterface
# Fetch HTTPS proxies from the US
swift = ProxyInterface(countries=["US"], protocol="https")
print(swift.get().as_string()) # Output: https://<ip>:<port>
Documentation
Explore the full documentation to learn more about Swiftshadow's features and advanced usage:
Why Swiftshadow?
- Lightweight: Minimal dependencies and easy to integrate.
- Flexible: Supports filtering by country and protocol.
- Scalable: Ideal for both small scripts and large-scale scraping projects.
- Open Source: Free to use, modify, and contribute to under the MIT License.
Contributing
Contributions are welcome! If you'd like to improve Swiftshadow, feel free to open an issue or submit a pull request on GitHub.
License
Swiftshadow is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file swiftshadow-2.1.0.tar.gz
.
File metadata
- Download URL: swiftshadow-2.1.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85d0de8dee7ebd94e9854858ff3f406f8d598044de53a74e92ddbdc82dab4e06 |
|
MD5 | ec5418d7613e95b54da286d714577659 |
|
BLAKE2b-256 | 6d5539a5f2163a5bac8ec716e5bad3cbe86ff35a44e56ba5ce814c301a9f3dfc |
File details
Details for the file swiftshadow-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: swiftshadow-2.1.0-py3-none-any.whl
- Upload date:
- Size: 23.4 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 | 8d7c9fe6f72d49960cee478bf29169591b7f3f05a5e5cc473b36022f19ae696e |
|
MD5 | 7a9ec0a5f4527eb00c238f4f387bbd19 |
|
BLAKE2b-256 | 69580bfe6abe9ddb5120347f2031a4bb06ee3f533b4a3631f2a226c99984e31c |