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.1.0.tar.gz (4.0 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.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proxy_fetcher-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 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.1.0.tar.gz
Algorithm Hash digest
SHA256 375bc45c1885e36a16978d81188a1246dc787d2093f1b42f2ddf4136da1bbc50
MD5 fe0c3b4648f7ce6e8e9bf118e383e3bf
BLAKE2b-256 f78bf7ca764fe36d1b36aa91e05585b6d2652d9e20133286bca036cbb1c117fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proxy_fetcher-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4bab19cef987ace017c769fea44054f054a924ae51fcbbe6c4c48dbe27ead89b
MD5 16a7f40e1a273441c7b8b55fa1862568
BLAKE2b-256 7b2e5904c04dcd927bc93f8f3eb1d5bd8023d529afb0b0c5d9e607f2720f0470

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