MerchantryTidbits

scraping / library

httpx / requests

Capability: httpx / requests

Use it when

  • async HTTP client for scrapers with timeouts and HTTP/2
  • modern requests-style client without browser overhead

What it solves

Not the fit when

  • bot-detection-challenge
  • js-render-not-blocking
  • auth-wall-session

Install

pip install httpx

Invoke

import httpx
r = httpx.get(url, headers={'User-Agent': 'tidbits-agent'}, follow_redirects=True, timeout=30)
r.raise_for_status()
html = r.text

Alternatives

No reviewed alternatives recorded yet.