v0.2.4

D4Vinci/Scraplingv0.2.4Nov 20, 2024by D4Vinci

AI Summary

Resolved issues with retrieving response bytes after network idle and calculating status text when the PlayWright API returns empty status text.

Key Highlights

  • Fixed 'No resource with given identifier found' error with network_idle.
  • Fixed manual calculation of status text when PlayWright returns empty strings.

New Features

  • Fixed network_idle response body retrieval.
  • Fixed status text calculation for empty responses.

Full Release Notes

# What's changed

### Bugs Squashed
- Fixed a bug when retrieving response bytes after using the `network_idle` argument in both the `StealthyFetcher` and `PlayWrightFetcher` classes. <br/> 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](https://github.com/sponsors/D4Vinci).