Repository navigation
extsearch 2.1.0
Progress while a search runs.
Library: search(..., progress=callback) gets an event per marketplace as it finishes:
def on_progress(e):
if e["event"] == "source":
print(e["percent"], "%", e["done"], "/", e["total"], e["source"], e["found"])
await search("навушники", where="ua", progress=on_progress)
CLI: extsearch search "навушники" -w ua --progress draws a live bar on stderr.
API: GET /search/stream streams the same events as Server-Sent Events, so a UI can show real progress:
curl -N -G 127.0.0.1:8000/search/stream --data-urlencode "q=навушники" --data-urlencode "where=ua"
Also in this release:
-
web_get/web_searchretry a 403 with a plain session (example.com was returning 403 to the impersonated client) -
Rozetka search is headful-only because of Cloudflare, so it left
where="ua"; call it by name. Product cards still work through the API.pip install "extsearch[all]"
Wheel and sdist attached. Python 3.10+, MIT.