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:
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
Hashes for proxygetter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8148f7573839503843dbf67f1c34b38d67e9a6c6ae2345a42f4668e059f27558 |
|
MD5 | 7cab802b7aa736af79eae1c83c3cf89a |
|
BLAKE2b-256 | 0c037f8237d2ff64d5ea12de73f9f7e07e792369e2b83dc88b8a3309adbee91c |