|
| 1 | +# Enable debug logging (shows detailed checking process) |
| 2 | +# Warning: Produces very verbose output |
| 3 | +debug = false |
| 4 | + |
| 5 | + |
| 6 | +[scraping] |
| 7 | +# Maximum proxies to collect per source (0 = unlimited) |
| 8 | +# Helps skip unreliable sources with too many proxies |
| 9 | +max_proxies_per_source = 100000 |
| 10 | + |
| 11 | +# Request timeout for fetching proxy sources (seconds) |
| 12 | +# Higher values may find more sources but take longer |
| 13 | +timeout = 60.0 |
| 14 | +connect_timeout = 5.0 |
| 15 | + |
| 16 | +# HTTP(S),SOCKS4 or SOCKS5 proxy used for fetching sources (e.g., "socks5://user:pass@host:port"). Leave empty to disable. |
| 17 | +proxy = "" |
| 18 | + |
| 19 | +# User-Agent header for scraping requests |
| 20 | +user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36" |
| 21 | + |
| 22 | + |
| 23 | +[checking] |
| 24 | +# URL for checking proxy functionality |
| 25 | +# httpbin-compatible: Returns JSON with IP info for ASN/geo data |
| 26 | +# plain-text: Returns just IP address for basic connectivity |
| 27 | +# Examples: |
| 28 | +# "https://httpbin.org/ip" - JSON with "origin" key. Full featured checking. |
| 29 | +# "https://api.ipify.org" - Simple IP return. Full featured checking. |
| 30 | +# "https://google.com" - Basic connect/read check |
| 31 | +# "" - Skip checking (scrape only) |
| 32 | +check_url = "https://api.ipify.org" |
| 33 | + |
| 34 | +# Concurrent proxy checks (adjust based on RAM/network capacity) |
| 35 | +# Start low and increase gradually if system handles it well |
| 36 | +max_concurrent_checks = 1024 |
| 37 | + |
| 38 | +# Proxy response timeout (seconds) |
| 39 | +# Higher = more working proxies found, slower checking |
| 40 | +# Lower = faster checking, may miss slower proxies |
| 41 | +timeout = 60.0 |
| 42 | +connect_timeout = 5.0 |
| 43 | + |
| 44 | +# User-Agent header for proxy check requests |
| 45 | +user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36" |
| 46 | + |
| 47 | + |
| 48 | +[output] |
| 49 | +# Output directory (Docker ignores this setting) |
| 50 | +path = "./out" |
| 51 | + |
| 52 | +# Sort by response time (true) or IP address (false) |
| 53 | +sort_by_speed = true |
| 54 | + |
| 55 | + |
| 56 | +# Plain text output (.txt files) |
| 57 | +[output.txt] |
| 58 | +enabled = false |
| 59 | + |
| 60 | + |
| 61 | +# JSON output with metadata (.json files) |
| 62 | +[output.json] |
| 63 | +enabled = false |
| 64 | + |
| 65 | +# Add ASN (network provider) info to JSON output |
| 66 | +# Uses offline MaxMind database |
| 67 | +include_asn = true |
| 68 | + |
| 69 | +# Add geolocation (country/city) info to JSON output |
| 70 | +# Uses offline MaxMind database |
| 71 | +include_geolocation = true |
| 72 | + |
| 73 | + |
| 74 | +# Proxy sources configuration |
| 75 | +# Add local files: ["./my_proxies.txt"] or URLs |
| 76 | +# Sources are fetched in parallel for speed |
| 77 | + |
| 78 | +enabled = true |
| 79 | +urls = ["file:///tmp/test_cidr.txt"] |
| 80 | + # Local file examples: |
| 81 | + # "./my_http_proxies.txt", |
| 82 | + # "/home/user/my_http_proxies.txt", |
| 83 | + # "C:/Users/user/Desktop/my_http_proxies.txt", |
| 84 | + # "file:///home/user/my_http_proxies.txt", |
| 85 | + |
| 86 | + # Advanced URL configuration examples (with basic auth or custom headers): |
| 87 | + # HTTP Basic Auth example: |
| 88 | + # { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } }, |
| 89 | + # Custom headers example: |
| 90 | + # { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } }, |
| 91 | + |
| 92 | + "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=http", |
| 93 | + "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=https", |
| 94 | + "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/http/data.txt", |
| 95 | + "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/https/data.txt", |
| 96 | + "https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/HTTPS_RAW.txt", |
| 97 | + "https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/http_proxies.txt", |
| 98 | + "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/http.txt", |
| 99 | +] |
| 100 | + |
| 101 | +[scraping.socks4] |
| 102 | +enabled = false |
| 103 | +urls = [ |
| 104 | + # Local file examples: |
| 105 | + # "./my_socks4_proxies.txt", |
| 106 | + # "/home/user/my_socks4_proxies.txt", |
| 107 | + # "C:/Users/user/Desktop/my_socks4_proxies.txt", |
| 108 | + # "file:///home/user/my_socks4_proxies.txt", |
| 109 | + |
| 110 | + # Advanced URL configuration examples (with basic auth or custom headers): |
| 111 | + # HTTP Basic Auth example: |
| 112 | + # { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } }, |
| 113 | + # Custom headers example: |
| 114 | + # { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } }, |
| 115 | + |
| 116 | + "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=socks4", |
| 117 | + "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/socks4/data.txt", |
| 118 | + "https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/SOCKS4_RAW.txt", |
| 119 | + "https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/socks4_proxies.txt", |
| 120 | + "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/socks4.txt", |
| 121 | +] |
| 122 | + |
| 123 | +[scraping.socks5] |
| 124 | +enabled = false |
| 125 | +urls = [ |
| 126 | + # Local file examples: |
| 127 | + # "./my_socks5_proxies.txt", |
| 128 | + # "/home/user/my_socks5_proxies.txt", |
| 129 | + # "C:/Users/user/Desktop/my_socks5_proxies.txt", |
| 130 | + # "file:///home/user/my_socks5_proxies.txt", |
| 131 | + |
| 132 | + # Advanced URL configuration examples (with basic auth or custom headers): |
| 133 | + # HTTP Basic Auth example: |
| 134 | + # { url = "https://some.api/endpoint", basic_auth = { username = "user", password = "password123" } }, |
| 135 | + # Custom headers example: |
| 136 | + # { url = "https://some.api/endpoint", headers = { Authorization = "Bearer YOUR_API_KEY" } }, |
| 137 | + |
| 138 | + "https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=socks5", |
| 139 | + "https://raw.githubusercontent.com/hookzof/socks5_list/refs/heads/master/proxy.txt", |
| 140 | + "https://raw.githubusercontent.com/proxifly/free-proxy-list/refs/heads/main/proxies/protocols/socks5/data.txt", |
| 141 | + "https://raw.githubusercontent.com/roosterkid/openproxylist/refs/heads/main/SOCKS5_RAW.txt", |
| 142 | + "https://raw.githubusercontent.com/sunny9577/proxy-scraper/refs/heads/master/generated/socks5_proxies.txt", |
| 143 | + "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/refs/heads/master/socks5.txt", |
| 144 | +] |
0 commit comments