Three scripts for web search and content extraction. All pre-installed in image v11.0+ — no per-generation pip needed.
Query the web via Brave Search; get titles, URLs, snippets.
query stringBRAVE_SEARCH_API_KEY in executor environmentok/error envelope)HTTP GET a URL and extract main text (strips boilerplate via trafilatura). Use this first for normal articles and docs — fast and lightweight.
urlOpen a URL in headless Chromium and extract rendered page text. Use only when web_fetch.py cannot read a page because content is JS-rendered.
url--timeout, --wait-until (domcontentloaded|load|networkidle), --max-chars, --leanweb_fetch.py — for one-off high-value pages, not batchesERR_INSUFFICIENT_RESOURCES, script retries once with nonessentials blockedweb_search.py to discover, web_fetch.py for the broad sweep, then retry important failures individually with web_render_fetch.py.