Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/proxy-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: proxy list

on:
schedule:
- cron: "17 * * * *" # every hour – a full run takes about 3 minutes
- cron: "17 * * * *" # every hour – the checks take about 5–6 minutes
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Collect and check proxies
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # for the GitHub discovery
run: python proxy_scraper.py -y --limit 150000 --timeout 6 --connect-timeout 4
run: python proxy_scraper.py -y --limit 150000 --timeout 10 --connect-timeout 4

# Google, Reddit, Amazon, Instagram, TikTok and Discord turn many free proxies away – note which got through (~2 min).
# Optional: if it fails, the list is published without it.
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project are listed here. The format follows [Keep a

## [Unreleased]

### Changed
- **A proxy whose second or content request broke off in transport gets a second chance at the end of the run.** Free proxies drop connections for a while: in every hourly run about 350 confirms and 280 content checks ended in `connect_timeout`, `timeout`, `connection_closed` or `no_answer` right after the proxy had passed its basic check (and after the retry 1.5 s later), and those proxies were lost. Now they get both requests once more at the end of the run, at least 20 seconds after their try, and count with whatever those end as. `checks.second_chance` in `run.json` says how the second chances ended
- **The hourly run gives a request 10 seconds instead of 6** (`--timeout 10`; the connect stays at 4 s). Free proxies are slow – the median latency of the list is above 2 seconds – and ~10,000 candidates a run connected but answered after the 6 seconds. The check phase takes about 5–6 minutes instead of 3–5
- Measured in A/B runs on 12 Nov 2026 (runners started at the same time, 150,000 candidates each): the hourly list grew from 768 proxies (as before) to 986 with the second chance and to 1,177 with both. A 15-second timeout gave 6 % more than 10 seconds with a slower list; six new self-checking sources found by a source search gave 3 more proxies – their proxies are in the existing lists already – and were not added. The hourly list still swings with one backconnect gateway (45.74.31.40–47, ~230,000 listed addresses): when it is up, a run lists 2,000–2,500 proxies, otherwise around 1,000–1,200. Checking all its addresses instead of 150,000 candidates gave 537 instead of 323 on 12 Nov, and a run without the 150,000 limit 1,111 instead of 1,095 – the limit isn't what holds the list back

## [1.33.1] – 2026-11-11

### Changed
Expand Down
9 changes: 6 additions & 3 deletions docs/check-states.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ A second or content request that httpbin.org's rate limit held back (`target_rat

The fallback targets are asked directly once when a run starts. Without an IP address from the echo, or without a reference page from either site, there is no fallback for that check and it stays `unavailable:target_rate_limited`. A failed fallback request is checked against the fallback target asked directly, like the other later checks. Each fallback target has its own pacing of 20 requests per second per exit IP; if that is overbooked too, or the fallback answers 429 with rate-limit headers, the check stays `unavailable:target_rate_limited` (with the fallback as its `target`). Only the overflow goes there – a few hundred requests an hour in the hourly run. ipv4.icanhazip.com (Cloudflare) documents no limit; example.com is IANA's, served best effort and not meant for production use, which is why it has a reserve. In a measurement on 11 Nov 2026, 39 parallel requests through 13 proxies sharing one exit got 78 of 78 HTTP 429 from httpbin.org, and 78 of 78 correct answers from each fallback target.

The second and the content request go to a proxy that has just answered the first one, so a connection that doesn't come about there is more often a lost packet than a dead proxy. They connect with at least 6 seconds (more if `--connect-timeout` is higher); the time they get after the connect stays the same, so their whole limit grows by the difference (8 seconds instead of 6 in the hourly run, `--timeout 6 --connect-timeout 4`). A request that failed in transport – `connect_timeout`, `timeout`, `connection_closed` or `no_answer` – is tried once more after 1.5 seconds, through the same pacing and 429 handling; the check records only how the last try ended. An answer that was the problem – another exit IP, a status other than 200, a wrong or changed page – is not tried again. Worst case, a proxy's second request can now take about 28.5 seconds instead of 15 in the hourly run (three tries of 8 seconds, the pause and a `Retry-After`), plus the wait for its slot; so can the content request.
The second and the content request go to a proxy that has just answered the first one, so a connection that doesn't come about there is more often a lost packet than a dead proxy. They connect with at least 6 seconds (more if `--connect-timeout` is higher); the time they get after the connect stays the same, so their whole limit grows by the difference (12 seconds instead of 10 in the hourly run, `--timeout 10 --connect-timeout 4`). A request that failed in transport – `connect_timeout`, `timeout`, `connection_closed` or `no_answer` – is tried once more after 1.5 seconds, through the same pacing and 429 handling; the check records only how the last try ended. An answer that was the problem – another exit IP, a status other than 200, a wrong or changed page – is not tried again. Worst case, a proxy's second request can take about 40.5 seconds in the hourly run (three tries of 12 seconds, the pause and a `Retry-After`), plus the wait for its slot; so can the content request.

**Second chance.** If the second or the content request still broke off in transport (the same four reasons), nothing is recorded yet: at the end of the run, at least 20 seconds after that try, the proxy gets both requests once more, and then counts with whatever they end as – once per check, as in any other run. Free proxies drop connections for a while and come back: in an A/B run on 12 Nov 2026 (two runners at the same time, 150,000 candidates each) 296 of 828 proxies passed on their second chance, and the list grew from 768 to 986 proxies. `checks.second_chance` in `run.json` says how the second chances ended (`passed`: the proxy is in the results). A proxy still waiting for its second chance when a run stops (`--want` reached, Ctrl+C) counts as checked and unconfirmed: it did fail a follow-up.

## What a list requires

Expand Down Expand Up @@ -127,12 +129,13 @@ Every run writes `run.json` next to its results, and the hourly list publishes i
"checks": {"basic": {"failed:connect_refused": 30122, "failed:connect_timeout": 101220, "passed": 2391},
"confirm": {"failed:bad_status": 919, "failed:exit_ip_mismatch": 311, "passed": 1161},
"content": {"failed:content_mismatch": 57, "passed": 1104},
"https": {"failed:tunnel_refused": 398, "passed": 706}},
"https": {"failed:tunnel_refused": 398, "passed": 706},
"second_chance": {"failed": 532, "passed": 296}},
"fallback": {"tried": 4210, "found": 52},
"changed_pages": {"with_script_tag": 21, "without_script_tag": 36}}
```

The numbers in this example are made up to show the shape. `candidates` are the proxies the run set out to check, `checked` the ones that got a verdict, `not_checked` the rest (stopped by `--want` or Ctrl+C, or this machine ran out of sockets: `no_verdict_local`). `changed_pages` splits the content mismatches by whether the page that came back contains a `<script` tag; the reference page has none. `basic` counts attempts: a proxy that is checked again after a check target switch counts once per try. An address that is tried as another protocol because the listed one answered wrongly (see [how it works](how-it-works.md)) is counted apart: `fallback.tried` such checks ran, `fallback.found` of them passed, and `checks.fallback` (present when any ran) says how they ended. A proxy found that way is in `working` under the protocol it speaks; the listed key counts as checked and failed. `fallback` and `checks.fallback` are new after 1.33.0; in 1.33.0 these checks were part of `checks.basic`. `targets.confirm_fallback` and `targets.content_fallback` name the [fallback targets](#fallback-targets) for httpbin.org's rate limit (`null`: none this run; which proxy used one is in its check's `target`) – also new after 1.33.0.
The numbers in this example are made up to show the shape. `candidates` are the proxies the run set out to check, `checked` the ones that got a verdict, `not_checked` the rest (stopped by `--want` or Ctrl+C, or this machine ran out of sockets: `no_verdict_local`). `changed_pages` splits the content mismatches by whether the page that came back contains a `<script` tag; the reference page has none. `basic` counts attempts: a proxy that is checked again after a check target switch counts once per try. An address that is tried as another protocol because the listed one answered wrongly (see [how it works](how-it-works.md)) is counted apart: `fallback.tried` such checks ran, `fallback.found` of them passed, and `checks.fallback` (present when any ran) says how they ended. A proxy found that way is in `working` under the protocol it speaks; the listed key counts as checked and failed. `fallback` and `checks.fallback` are new after 1.33.0; in 1.33.0 these checks were part of `checks.basic`. `checks.second_chance` (present when a proxy got one) says how the [second chances](#reason-codes) ended – new after 1.33.1. `targets.confirm_fallback` and `targets.content_fallback` name the [fallback targets](#fallback-targets) for httpbin.org's rate limit (`null`: none this run; which proxy used one is in its check's `target`) – also new after 1.33.0.

## For code that reads the old fields

Expand Down
Loading
Loading