How jhao104/proxy_pool works
ProxyPool collects free proxies on a schedule, validates and deduplicates them, stores usable entries, and serves them through an HTTP API for crawler clients. The repository also documents separate schedule and server commands and extensible, dynamically discovered proxy sources. The graph shows the evidenced collection, validation, persistence, and API paths; database backends and validator details are represented at their implementation boundaries. The source excerpts do not show every scheduler or launcher call, so some wiring is supported by the SOURCE INDEX or README rather than inspected implementation.
Main entry points: fetch.py Fetcher orchestrator · check.py Proxy checker · sources Source plugins · dbClient.py Database client
Components 21
Proxy collection
- Fetcher orchestrator
helper/fetch.py - Source plugins
fetcher/sources - Fetcher base
fetcher/baseFetcher.py - Web requests
util/webRequest.py
Validation
- Pre-validation
helper/validator.py - Proxy checker
helper/check.py
Proxy pool
- Proxy model
helper/proxy.py - Pool operations
handler/proxyHandler.py - Database client
db/dbClient.py - Redis backend
db/redisClient.py - SSDB backend
db/ssdbClient.py
Runtime and access
- Schedule command
proxyPool.py - Server command
proxyPool.py - Process launcher
helper/launcher.py - Job scheduler
helper/scheduler.py - Proxy API
api/proxyApi.py - Configuration
handler/configHandler.py
Other components
- Crawler client
- Operator
- Proxy source sites
- Validation endpoints
Connections 24
- Operator → Schedule command: starts schedule
- Operator → Server command: starts server
- Schedule command → Process launcher: dispatches
proxyPool.py - Server command → Process launcher: dispatches
proxyPool.py - Process launcher → Job scheduler: starts scheduler
helper/launcher.py - Process launcher → Proxy API: starts API
helper/launcher.py - Job scheduler → Fetcher orchestrator: runs collection
helper/scheduler.py - Job scheduler → Proxy checker: runs checks
helper/scheduler.py - Fetcher orchestrator → Source plugins: discovers and invokes
helper/fetch.py - Source plugins → Fetcher base: implements
fetcher/sources/scdn.py - Source plugins → Web requests: requests pages
fetcher/sources/daili66.py - Proxy source sites → Source plugins: provides proxy listings
- Fetcher orchestrator → Pre-validation: filters candidates
helper/fetch.py - Fetcher orchestrator → Proxy model: creates proxy records
helper/fetch.py - Proxy checker → Proxy model: updates status
helper/check.py - Proxy checker → Validation endpoints: tests proxies
- Proxy checker → Pool operations: stores or deletes
helper/check.py - Proxy API → Pool operations: serves pool operations
api/proxyApi.py - Pool operations → Database client: delegates CRUD
handler/proxyHandler.py - Database client → Redis backend: dispatches Redis
db/dbClient.py - Database client → SSDB backend: dispatches SSDB
db/dbClient.py - Proxy API → Crawler client: returns proxy data
- Configuration → Database client: configures connection
handler/proxyHandler.py - Configuration → Fetcher orchestrator: configures exclusions
helper/fetch.py