v0.2.5
D4Vinci/Scraplingv0.2.5Nov 23, 2024by D4Vinci
AI Summary
Fixed bugs related to element selectors and encoding types, while improving test coverage and documentation readability.
Key Highlights
- Fixed error when `wait_selector` resolves to multiple elements.
- Fixed encoding type handling for content-type headers with parameters.
- Tests now run in threads for faster execution.
New Features
- Fixed wait_selector error handling.
- Fixed content_type encoding parsing.
- Added new tests to cover code parts.
- Updated docstrings for better readability.
Full Release Notes
# What's changed ### Bugs Squashed - Handled an error that happens with the 'wait_selector' argument if it resolved to more than 1 element. This affects the `StealthyFetcher` and the `PlayWrightFetcher` classes. - Fixed the encoding type in cases where the `content_type` header gets value with parameters like `charset` (Thanks to @andyfcx for [#12](https://github.com/D4Vinci/Scrapling/issues/12) ) ### Quality of life - Added more tests to cover new parts of the code and made tests run in threads. - I updated the docs strings to be readable correctly on Sphinx's apidoc or similar tools. ### New Contributors - @andyfcx made their first contribution at [#13 ](https://github.com/D4Vinci/Scrapling/pull/13) --- > [!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).