v0.2.2
D4Vinci/Scraplingv0.2.2Nov 16, 2024by D4Vinci
AI Summary
Introduced a simplified import path for default fetchers to reduce boilerplate code and fixed a bug with the Response object in nested operations.
Key Highlights
- New `from scrapling.default import ...` path for cleaner code usage.
- Fixed Response object bug with nested selecting/parsing.
New Features
- Simplified import path for default fetchers.
- Fixed Response object nested selection bug.
Full Release Notes
# What's changed
### New features
- Now if you don't want to pass arguments to the generated `Adaptor` object and want to use the default values, you can use this import instead for cleaner code
```python
>> from scrapling.default import Fetcher, StealthyFetcher, PlayWrightFetcher
>> page = Fetcher.get('https://example.com', stealthy_headers=True)
```
Otherwise
```python
>> from scrapling import Fetcher, StealthyFetcher, PlayWrightFetcher
>> page = Fetcher(auto_match=False).get('https://example.com', stealthy_headers=True)
```
### Bugs Squashed
1. Fixed a bug with the `Response` object introduced with patch v0.2.1 yesterday that happened with some cases of nested selecting/parsing.
---
> [!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).