Fixed a bug when retrieving response bytes after using the network_idle argument in both the StealthyFetcher and PlayWrightFetcher classes. That was causing the following error message:
Response.body: Protocol error (Network.getResponseBody): No resource with given identifier found
The PlayWright API sometimes returns empty status text with responses, so now Scrapling will calculate it manually if that happens. This affects both the StealthyFetcher and PlayWrightFetcher classes.
[!NOTE]
A friendly reminder that maintaining and improving Scrapling takes a lot of time and effort which I have been happily doing for months even though it's becoming harder. So, if you like Scrapling and want it to keep improving, you can help by supporting me through the Sponsor button.
What's changed
Bugs Squashed
network_idle
argument in both theStealthyFetcher
andPlayWrightFetcher
classes.That was causing the following error message:
Scrapling
will calculate it manually if that happens. This affects both theStealthyFetcher
andPlayWrightFetcher
classes.