v0.2.97

D4Vinci/Scraplingv0.2.97Mar 15, 2025by D4Vinci

AI Summary

This update focuses on performance optimization, significantly reducing memory usage and increasing speed across all fetchers, alongside critical bug fixes in `TextHandler` and `AsyncFetcher` retry logic.

Key Highlights

  • Lower memory usage and speed increase across all Fetchers
  • Fixed bug in `TextHandler` where non-string values converted to empty strings
  • Fixed `retries` arguments not being taken into account in most AsyncFetcher methods

New Features

  • Refactored fetchers for maintainability
  • Updated type hints for clearer arguments across all fetchers

Full Release Notes

**This is an essential update for everyone to fully enjoy Scrapling as it's intended**

## What's changed
### Lower memory usage and small speed increase across all Fetchers.
- With new limitations across the library over caching size you will notice significantly lower memory usage than before while doing large numbers of requests/operations.
- Refactored big parts of the fetchers to easier maintainability and small speed increase.

### Bugs fixed
- Fixed a bug in `TextHandler` where importing it alone and passing a non-string value converts it to an empty string. Now anything passed to `TextHandler` is automatically converted to a string before being converted to `TextHandler`, this is forced on any value passed -- `TextHandler` as the name implies is intended to work with strings only after all! (#45 )
- Fixed a bug where the `retries` arguments weren't taken into account in most AsyncFetcher methods.

### Miscellaneous
- Update type hints for most arguments in all fetchers to be clearer and more accurate.

**_Thanks for all your support and donations!_**

---

## Big shoutout to our biggest Sponsor: [Scrapeless](https://www.scrapeless.com/en/product/deep-serp-api?utm_source=website&utm_medium=ads&utm_campaign=scraping&utm_term=d4vinci)
<a href="https://www.scrapeless.com/en/product/deep-serp-api?utm_source=website&utm_medium=ads&utm_campaign=scraping&utm_term=d4vinci"><img src="https://raw.githubusercontent.com/D4Vinci/Scrapling/main/images/scrapeless.jpg" height="400" alt="Scrapeless Banner" ></a>