A utility to get and filter free proxies
Project description
proxygetter
Description
proxygetter
is a Python utility for scraping and filtering proxies from sslproxies.org. It is designed to be lightweight, fast, and customizable.
Installation
You can install proxygetter
via pip:
pip install proxygetter
Usage
Basic Usage
To get a list of all available proxies:
from proxygetter import get_proxies
proxies = get_proxies()
print(proxies)
Features
Filter by Country Code
To get proxies from a specific country:
proxies = get_proxies(country_code='US')
Filter by Anonymity
To get anonymous or elite proxies (accepted values are 'anonymous'
and 'elite proxy'
):
proxies = get_proxies(anonymity='anonymous')
Filter by HTTPS support
To get proxies that support HTTPS:
proxies = get_proxies(https=True)
Filter by Google support
To get proxies that were checked to work with Google:
proxies = get_proxies(google=True)
Filter by Last Checked Time
To get proxies that were last checked within a certain number of seconds:
proxies = get_proxies(last_checked_max=600) # Proxies checked within the last 10 minutes
Advanced Usage
You can combine multiple filters:
proxies = get_proxies(country_code='US', anonymity='elite proxy', https=True, google=True, last_checked_max=600)
License
This project is under the MIT License - see the LICENSE file for details.
Tests
You can run the tests using the unittest
framework with the command:
python -m unittest tests/test_proxygetter.py
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
File details
Details for the file proxygetter-0.1.3.tar.gz
.
File metadata
- Download URL: proxygetter-0.1.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5f4e100a820ad7a97d7cf5a55fbf735d0fb3779ded958078e7c643cadcdbd68 |
|
MD5 | d211521e938236441b125d4cb3d9570b |
|
BLAKE2b-256 | 8079c0df785bcc0c0af5ba03d527a328a77fb5045df694a7cd780af3d2320beb |
File details
Details for the file proxygetter-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: proxygetter-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53272ad5e3246d4dc519ff161a9daf8fc2f58dde3de7d5944f0ff1e6283afb1c |
|
MD5 | 8ba1fb73d5b0cf1b2a52aa401562a7f8 |
|
BLAKE2b-256 | 3e0854558b5e0c4648e8089f35e4dc5f528284c44ffddb0031f9b88f3c044507 |