Repository navigation
Stop on a refused proxy before the browser starts; skip media through a proxy - #13
Merged
Merged
Conversation
…ia through a proxy A proxy that answers 407 or 402 to a one-request pre-check (CONNECT plus HEAD /robots.txt on the target host) now ends the run with exit 5 and <out>.latest_attempt.meta.json (status failed, stop_reason proxy_auth_failed / proxy_balance_exhausted) instead of surfacing as a Chromium navigation timeout on every retry. Through a local proxy, all three engines abort image, media and font requests; --load-media or WELLFOUND_LOAD_MEDIA=1 loads them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CKsd7q25N19WzUZjrAdzx8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A run through a metered residential proxy spent traffic and time it did not need to:
Page.goto: Timeout ... exceeded. With a wrong or exhausted credential, each engine retried and timed out again for minutes, then ended as a load failure, which points at the site instead of the proxy. The 2026-10-20 canary showed exactly this:Timeout loading https://wellfound.com/role/r/software-engineerthree times through the proxy.Resulting behaviour
HEAD /robots.txtinside the tunnel. There is no third-party IP service.WELLFOUND_PROXY (or --proxy / --proxy-file). It exits 5 and writes<out>.latest_attempt.meta.jsonwithstatus: failedandstop_reason: proxy_auth_failed.stop_reason: proxy_balance_exhausted.proxy_pool.mask.<out>.meta.jsonand the previous output are not touched.--cdp-endpoint.context.routeabortsimage/media/fontby resource type. It is installed in_launch_local, so every--concurrencyworker gets it too.Fetch.enablewith resource-type patterns (Image/Media/Font), on its own CDP session.page.setRequestInterceptionis not used because current Chromium no longer hasNetwork.setRequestInterception.Network.setBlockedURLsfor image/video/font file extensions.--load-media(orWELLFOUND_LOAD_MEDIA=1, shipped commented out in.env.example) turns blocking off. A hidden--block-mediaforces it on without a proxy, for measurements and tests.Why media is blocked by default here
__NEXT_DATA__'s Apollo cache, or the detail route's own payload.product_parser.pyhas no reference to an image or a font./role/r/software-engineer) was refused by Cloudflare's managed challenge (Turnstile, exit 3) before any listing was served. That is this site's documented datacentre refusal, so no blocked run was attempted.Evidence
gate()removed from each of playwright/selenium/puppeteer → ": a 407 exits 5 without starting a browser".proxy_check.pywas checked with real browsers on a local stub page in quora-scraper#16. With blocking on, the server never saw the img, video or font, while the text, script and stylesheet loaded, on Playwright, pyppeteer and Selenium.Not changed
🤖 Generated with Claude Code
https://claude.ai/code/session_01CKsd7q25N19WzUZjrAdzx8