Skip to main content

Package for fetching and validating working HTTP/HTTPS proxies from multiple sources

Project description

Proxy Fetcher

Python package for fetching and validating HTTP/HTTPS proxies from multiple sources.

Features

  • Automatic proxy validation
  • Multiple sources (Geonode, ProxyScrape, etc.)
  • Customizable parameters
  • Progress bar with tqdm

Installation

pip install proxy-fetcher

Quick Start

from proxy_fetcher import get_proxies

# Get 10 working proxies (default)
proxies = get_proxies()
print(f"Found {len(proxies)} working proxies")

# Custom settings
proxies = get_proxies(
    MIN_WORKING_PROXIES=15,
    PROXY_LIMIT=50,
    TIMEOUT=10
)

Advanced Usage

from proxy_fetcher import ProxyFetcher

# Manual control
fetcher = ProxyFetcher(
    MIN_WORKING_PROXIES=5,
    TEST_URLS=["http://my-site.com/check-ip"]
)

if fetcher.fetch_proxies():
    print(fetcher.working_proxies)

Configuration Options

Parameter Default Description
MIN_WORKING_PROXIES 10 Minimum working proxies to find
PROXY_LIMIT 100 Max proxies to fetch per attempt
TIMEOUT 5 Timeout for validation (seconds)
MAX_ATTEMPTS 3 Max attempts to reach target count
TEST_URLS See below URLs for proxy validation

Proxy Storage

Save proxies to file:

from proxy_fetcher import get_proxies

proxies = get_proxies()
with open('proxies.txt', 'w') as f:
    f.write('\n'.join(proxies))

Load proxies from file:

with open('proxies.txt') as f:
    loaded_proxies = f.read().splitlines()

License

MIT

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

proxy_fetcher-0.2.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

proxy_fetcher-0.2.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file proxy_fetcher-0.2.0.tar.gz.

File metadata

  • Download URL: proxy_fetcher-0.2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for proxy_fetcher-0.2.0.tar.gz
Algorithm Hash digest
SHA256 10930798e11daebf118225deab6c1eb4ba0df1f62ab7dd20b665736aea148947
MD5 19e0d3fc5c9d7fd155a81a95877a0423
BLAKE2b-256 97fa0652a35bf0c762984177a0cec84c54b4e3b15e003359ca8c84f1984636af

See more details on using hashes here.

File details

Details for the file proxy_fetcher-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: proxy_fetcher-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for proxy_fetcher-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1f3de0b13f97c8ef7fa0601882066c6f5707f9c74006620baf479c0761371b5
MD5 59fac9bb25f61dc9f3a4b6f63c2bae4f
BLAKE2b-256 f33ac7f3d686833354c26f3164e4a855a62a167d3985894e3f810a04aab6567f

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