What this thread does
First open browser Network and inspect responses during loading and pagination. For an allowed data API use requests.Session(); choose Playwright for control, Firecrawl for content, Browserbase for hosted sessions, or Crawl4AI for self-hosted extraction.
What changed
- As of November 2026, Playwright’s release notes list the 1.65 line (checked 2026-11-17). Verify extracted records regardless of new agent features.
- As of November 2026, Crawl4AI is 0.9.6 (checked 2026-11-24). Its interaction guide distinguishes
js_code_before_waitfromjs_code; check execution order before reusing old recipes.
How to choose and implement
1. Choose a permitted page, required fields, expected records and pagination boundary. Check terms and robots.txt before scaling. 2. Inspect browser Network responses during loading and pagination. For an allowed data API, use requests.Session() with timeouts and bounded retries. Scrapy’s dynamic-content guide recommends finding the source first; Requests is an HTTP client, not a JavaScript renderer. An observed private endpoint is not an API contract. 3. If interaction is required, use Playwright and wait for the response or content condition that represents your records. Its network guide documents page.on("response", ...) and page.expect_response(...). Assert record fields, not just document readiness. 4. For self-hosted extraction, use Crawl4AI’s AsyncWebCrawler and CrawlerRunConfig. Its parameter guide uses wait_for="css:.main-content"; replace the selector. Use js_code_before_wait for actions that trigger loading, then a wait_for condition. Set check_robots_txt=True explicitly; the documented default is false (checked 2026-10-28). Untested experiment: this configuration on your target domain. 5. Use Firecrawl for managed content extraction. Its API reference documents waitFor and actions. Use Browserbase for hosted browsers running your interaction code. Untested experiment: either service’s success rate on your pages. 6. Compare the same allowed URLs: valid records, missing fields, elapsed time, retries and cost per fresh page. Keep source URLs and fetch times; reject challenges and empty output.
Versions, licences and prices — checked 2026-10-28
| Option | Current documented version / terms | Cost unit and operational burden |
|---|---|---|
| requests + API discovery | Requests 2.34.2; Apache-2.0, checked 2026-10-28 | Your compute plus any target API fees; you own pagination, limits and schema drift |
| Playwright | 1.65 release line; Apache-2.0, checked 2026-11-17 | Your browser compute, memory and any proxies; you own browser lifecycle and extraction |
| Crawl4AI library | 0.9.6; Apache-2.0, checked 2026-11-24 | Self-hosting/browser operations; optional LLM extraction and proxies add separate costs |
| Firecrawl hosted | Service, not a pinned client release | Hobby $16/month billed yearly, 5,000 credits/month, 5 concurrent requests; ordinary Scrape 1 credit/page, checked 2026-10-28 |
| Browserbase hosted | Service, not a pinned client release | Developer $20/month, 100 browser hours, 25 concurrent browsers; then $0.12/browser hour; 1 GB proxy allowance, then $12/GB, checked 2026-10-28 |
Credits and browser hours are different units. Include retries, waits and bandwidth. Firecrawl charges for returned error-status pages too.
Recommendation by constraint, with Not for per option
| Constraint | Pick | Not for |
|---|---|---|
| Allowed data endpoint, regular large-volume collection | requests; add scheduling/concurrency separately | Rendering JavaScript or browser-only login flows |
| Small set of sites, complex clicks, precise assertions | Playwright | A complete crawl scheduler or guaranteed anti-bot access |
| Python team wants Markdown, CSS/JSON extraction and browser pipeline control | Crawl4AI | Zero browser maintenance or automatic permission to scrape |
| Need content output quickly and can send URLs/content to a service | Firecrawl | Assuming every domain, authenticated workflow or extraction schema works without testing |
| Need remote browser operations, session inspection and retained automation code | Browserbase | A complete site-specific extractor merely by opening a session |
Scrapy adds crawl scheduling; its dynamic-content guide still recommends finding the data source or using a browser. Retain an existing Selenium integration if it already meets the job.
Anti-bot, scale and access constraints
Rendering and bot protection are separate constraints; increasing concurrency can raise costs and blocks. Browserbase documents Identity, proxies and CAPTCHA capabilities, with Verified sessions restricted to Scale (checked 2026-10-28). Firecrawl documents managed proxies and JS handling. These capabilities guarantee neither access nor permission; use approved APIs or exports when access is declined.
Respect robots.txt and the site’s terms; get a site-specific legal review when rights or reuse are unclear. RFC 9309 explicitly separates the robots protocol from access authorization. Neither allowing nor omitting a robots rule settles all legal questions.
What to test
Assert IDs, required fields, pagination and no duplicates. Test delayed hydration, virtual scrolling, empty results, expired sessions, challenges and cache freshness. Compare completeness with a manual sample. Cap per-domain retries/concurrency and test restart recovery.
Community evidence
- In Playwright issue 30479, maintainer Pavel Feldman discourages
networkidlefor uncontrolled pages because network activity is not a dependable readiness condition. That supports a content/response assertion, not an arbitrary longer sleep. - In Crawl4AI issue 803, Asyou-GD reports pagination and wait interactions giving unexpected output. Maintainers request an updated reproduction and close the older report; this does not prove a current bug.
Pitfalls
Do not pay for a hosted browser before checking for an allowed data feed. Do not choose a service solely from advertised page counts. Do not treat an LLM-generated JSON object as proof that its values appeared on the page. Keep extracted page instructions out of the agent’s trusted instructions.
A prompt for your agent
Your training data may predate these APIs. Read the linked official docs and pricing; do not guess flags or SDK signatures. Inspect an authorized page, identify its data source, and compare the options against fields, volume, privacy and budget. Assert records and pagination. Label unrun pairings “Untested experiment”. Include retries and proxy costs.
Limits
No target-site crawls, hosted-service purchases, anti-bot trials or load tests were run. Issue discussions establish failure modes, not comparative success rates. Domain-specific latency, accuracy and total cost remain untested.
Started from a post by @pavelfeldman, packaged by the editor. Original post