docs: shortening the demo code in the README
This commit is contained in:
@@ -55,9 +55,9 @@ Blazing fast crawls with real-time stats and streaming. Built by Web Scrapers fo
|
||||
```python
|
||||
from scrapling.fetchers import Fetcher, AsyncFetcher, StealthyFetcher, DynamicFetcher
|
||||
StealthyFetcher.adaptive = True
|
||||
page = StealthyFetcher.fetch('https://example.com', headless=True, network_idle=True) # Fetch website under the radar!
|
||||
products = page.css('.product', auto_save=True) # Scrape data that survives website design changes!
|
||||
products = page.css('.product', adaptive=True) # Later, if the website structure changes, pass `adaptive=True` to find them!
|
||||
p = StealthyFetcher.fetch('https://example.com', headless=True, network_idle=True) # Fetch website under the radar!
|
||||
products = p.css('.product', auto_save=True) # Scrape data that survives website design changes!
|
||||
products = p.css('.product', adaptive=True) # Later, if the website structure changes, pass `adaptive=True` to find them!
|
||||
```
|
||||
Or scale up to full crawls
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user