Files
proxy-scraper-checker/config.toml
T

146 lines
5.8 KiB
TOML
Raw Normal View History

2025-07-18 16:50:57 +03:00
# Enable debug logging (shows detailed checking process)
# Warning: Produces very verbose output
2025-05-24 01:31:42 +03:00
debug = false
[scraping]
2025-07-18 16:50:57 +03:00
# Maximum proxies to collect per source (0 = unlimited)
# Helps skip unreliable sources with too many proxies
2025-05-24 01:31:42 +03:00
max_proxies_per_source = 100000
2025-07-18 16:50:57 +03:00
# Request timeout for fetching proxy sources (seconds)
# Higher values may find more sources but take longer
2025-07-23 14:07:03 +03:00
timeout = 60.0
connect_timeout = 5.0
2024-01-21 17:45:01 +00:00
# HTTP(S),SOCKS4 or SOCKS5 proxy used for fetching sources (e.g., "socks5://user:pass@host:port"). Leave empty to disable.
proxy = ""
# User-Agent header for scraping requests
2025-09-17 09:10:18 +03:00
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
2025-08-04 13:33:06 +03:00
2024-01-21 17:45:01 +00:00
2025-05-24 01:31:42 +03:00
[checking]
# URL for checking proxy functionality
2025-07-18 16:50:57 +03:00
# httpbin-compatible: Returns JSON with IP info for ASN/geo data
# plain-text: Returns just IP address for basic connectivity
2025-05-24 01:31:42 +03:00
# Examples:
# "https://httpbin.org/ip" - JSON with "origin" key. Full featured checking.
# "https://api.ipify.org" - Simple IP return. Full featured checking.
# "https://google.com" - Basic connect/read check
2025-07-18 16:50:57 +03:00
# "" - Skip checking (scrape only)
2025-07-14 17:09:05 +03:00
check_url = "https://api.ipify.org"
2024-01-21 17:45:01 +00:00
2025-07-18 16:50:57 +03:00
# Concurrent proxy checks (adjust based on RAM/network capacity)
# Start low and increase gradually if system handles it well
max_concurrent_checks = 1024
2025-05-24 01:31:42 +03:00
2025-07-18 16:50:57 +03:00
# Proxy response timeout (seconds)
# Higher = more working proxies found, slower checking
# Lower = faster checking, may miss slower proxies
timeout = 60.0
connect_timeout = 5.0
2025-05-24 01:31:42 +03:00
# User-Agent header for proxy check requests
2025-09-17 09:10:18 +03:00
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
2025-08-04 13:33:06 +03:00
2025-05-24 01:31:42 +03:00
2024-01-21 17:45:01 +00:00
[output]
2025-07-18 16:50:57 +03:00
# Output directory (Docker ignores this setting)
2024-01-21 21:51:31 +03:00
path = "./out"
2024-01-21 17:45:01 +00:00
2025-07-18 16:50:57 +03:00
# Sort by response time (true) or IP address (false)
2025-05-24 01:31:42 +03:00
sort_by_speed = true
2025-07-18 16:50:57 +03:00
# Plain text output (.txt files)
2025-05-24 01:31:42 +03:00
[output.txt]
enabled = true
2025-07-18 16:50:57 +03:00
# JSON output with metadata (.json files)
2025-05-24 01:31:42 +03:00
[output.json]
enabled = true
2025-05-24 02:31:23 +03:00
2025-07-18 16:50:57 +03:00
# Add ASN (network provider) info to JSON output
# Uses offline MaxMind database
2025-05-24 02:31:23 +03:00
include_asn = true
2025-05-24 01:31:42 +03:00
2025-07-18 16:50:57 +03:00
# Add geolocation (country/city) info to JSON output
# Uses offline MaxMind database
2025-05-24 01:31:42 +03:00
include_geolocation = true
2024-01-21 17:45:01 +00:00
2025-07-18 16:50:57 +03:00
# Proxy sources configuration
# Add local files: ["./my_proxies.txt"] or URLs
# Sources are fetched in parallel for speed
2025-05-24 01:31:42 +03:00
[scraping.http]
2025-08-05 19:15:44 +03:00
enabled = true
2025-05-24 01:31:42 +03:00
urls = [
# Local file examples:
2025-05-24 01:31:42 +03:00
# "./my_http_proxies.txt",
# "/home/user/my_http_proxies.txt",
# "C:/Users/user/Desktop/my_http_proxies.txt",
# "file:///home/user/my_http_proxies.txt",
# Advanced URL configuration examples (with basic auth or custom headers):
# HTTP Basic Auth example:
# { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } },
# Custom headers example:
# { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } },
2025-05-24 01:31:42 +03:00
2025-07-14 15:42:15 +03:00
"https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=http",
"https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=https",
2025-07-14 17:09:35 +03:00
"https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/http/data.txt",
"https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/https/data.txt",
2025-02-26 17:51:58 +03:00
"https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/HTTPS_RAW.txt",
"https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/http_proxies.txt",
"https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/http.txt",
2024-01-21 17:45:01 +00:00
]
2025-05-24 01:31:42 +03:00
[scraping.socks4]
2025-08-05 19:15:44 +03:00
enabled = true
2025-05-24 01:31:42 +03:00
urls = [
# Local file examples:
2025-05-24 01:31:42 +03:00
# "./my_socks4_proxies.txt",
# "/home/user/my_socks4_proxies.txt",
# "C:/Users/user/Desktop/my_socks4_proxies.txt",
# "file:///home/user/my_socks4_proxies.txt",
# Advanced URL configuration examples (with basic auth or custom headers):
# HTTP Basic Auth example:
# { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } },
# Custom headers example:
# { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } },
2025-05-24 01:31:42 +03:00
2025-07-14 15:42:15 +03:00
"https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=socks4",
2025-07-14 17:09:35 +03:00
"https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/socks4/data.txt",
2025-02-26 17:51:58 +03:00
"https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/SOCKS4_RAW.txt",
"https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/socks4_proxies.txt",
"https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/socks4.txt",
2024-01-21 17:45:01 +00:00
]
2025-05-24 01:31:42 +03:00
[scraping.socks5]
2024-01-21 17:45:01 +00:00
enabled = true
2025-05-24 01:31:42 +03:00
urls = [
# Local file examples:
2025-05-24 01:31:42 +03:00
# "./my_socks5_proxies.txt",
# "/home/user/my_socks5_proxies.txt",
# "C:/Users/user/Desktop/my_socks5_proxies.txt",
# "file:///home/user/my_socks5_proxies.txt",
# Advanced URL configuration examples (with basic auth or custom headers):
# HTTP Basic Auth example:
2025-08-05 19:15:03 +03:00
# { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } },
# Custom headers example:
2025-08-05 19:15:03 +03:00
# { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } },
2025-05-24 01:31:42 +03:00
2025-07-14 15:42:15 +03:00
"https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=socks5",
2025-02-26 17:51:58 +03:00
"https://raw.githubusercontent.com/hookzof/socks5_list/refs/heads/master/proxy.txt",
2025-07-14 17:09:35 +03:00
"https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/socks5/data.txt",
2025-02-26 17:51:58 +03:00
"https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/SOCKS5_RAW.txt",
"https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/socks5_proxies.txt",
"https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/socks5.txt",
2024-01-21 17:45:01 +00:00
]