docs: update docs to add file downloading examples

This commit is contained in:
Karim shoair
2025-11-10 03:02:41 +02:00
parent ff19dd5bf5
commit 026161c8f8
4 changed files with 33 additions and 2 deletions
+10
View File
@@ -269,6 +269,16 @@ def scrape_products():
return results
```
### Downloading Files
```python
from scrapling.fetchers import Fetcher
page = Fetcher.get('https://raw.githubusercontent.com/D4Vinci/Scrapling/main/images/poster.png')
with open(file='poster.png', mode='wb') as f:
f.write(page.body)
```
### Pagination Handling
```python