Skip to content

v11.0.2: Fix smart_fetch and smart_crawl broken

Choose a tag to compare

@dondai1234 dondai1234 released this 21 Jul 08:14

Fix: smart_fetch and smart_crawl completely broken

The scrapling removal in v11.0.0 broke smart_fetch and smart_crawl. follow_redirects defaults to the string 'safe' (scrapling's API), but primp expects a bool. The string was passed directly to primp.Client.get() causing a TypeError on every fetch.

Fix: HTTPSession.get() coerces follow_redirects from string to bool before passing to primp.