@@ -134,14 +134,14 @@ res = sgai.search(
134134Crawl a website and its linked pages.
135135
136136``` python
137- from scrapegraph_py import ScrapeGraphAI, MarkdownFormatConfig
137+ from scrapegraph_py import ScrapeGraphAI, ScrapeMarkdownFormatEntry
138138
139139sgai = ScrapeGraphAI()
140140
141141# Start a crawl
142142start = sgai.crawl.start(
143143 " https://example.com" ,
144- formats = [MarkdownFormatConfig ()],
144+ formats = [ScrapeMarkdownFormatEntry ()],
145145 max_pages = 50 ,
146146 max_depth = 2 ,
147147 max_links_per_page = 10 ,
@@ -151,6 +151,7 @@ start = sgai.crawl.start(
151151
152152# Check status
153153status = sgai.crawl.get(start.data[" id" ])
154+ pages = sgai.crawl.pages(start.data[" id" ], cursor = 0 , limit = 50 )
154155
155156# Control
156157sgai.crawl.stop(crawl_id)
@@ -259,6 +260,7 @@ async with AsyncScrapeGraphAI() as sgai:
259260async with AsyncScrapeGraphAI() as sgai:
260261 start = await sgai.crawl.start(" https://example.com" , max_pages = 50 )
261262 status = await sgai.crawl.get(start.data[" id" ])
263+ pages = await sgai.crawl.pages(start.data[" id" ], cursor = 0 , limit = 50 )
262264```
263265
264266### Async Monitor
@@ -289,6 +291,7 @@ async with AsyncScrapeGraphAI() as sgai:
289291| search | [ ` search_with_extraction.py ` ] ( examples/search/search_with_extraction.py ) | Search + AI extraction |
290292| crawl | [ ` crawl_basic.py ` ] ( examples/crawl/crawl_basic.py ) | Start and monitor a crawl |
291293| crawl | [ ` crawl_with_formats.py ` ] ( examples/crawl/crawl_with_formats.py ) | Crawl with formats |
294+ | crawl | [ ` crawl_pages.py ` ] ( examples/crawl/crawl_pages.py ) | Paginated crawl pages with scrape results |
292295| monitor | [ ` monitor_basic.py ` ] ( examples/monitor/monitor_basic.py ) | Create a page monitor |
293296| monitor | [ ` monitor_with_webhook.py ` ] ( examples/monitor/monitor_with_webhook.py ) | Monitor with webhook |
294297| utilities | [ ` credits.py ` ] ( examples/utilities/credits.py ) | Check credits and limits |
@@ -310,6 +313,7 @@ async with AsyncScrapeGraphAI() as sgai:
310313| search | [ ` search_with_extraction_async.py ` ] ( examples/search/search_with_extraction_async.py ) | Search + AI extraction |
311314| crawl | [ ` crawl_basic_async.py ` ] ( examples/crawl/crawl_basic_async.py ) | Start and monitor a crawl |
312315| crawl | [ ` crawl_with_formats_async.py ` ] ( examples/crawl/crawl_with_formats_async.py ) | Crawl with formats |
316+ | crawl | [ ` crawl_pages_async.py ` ] ( examples/crawl/crawl_pages_async.py ) | Paginated crawl pages with scrape results |
313317| monitor | [ ` monitor_basic_async.py ` ] ( examples/monitor/monitor_basic_async.py ) | Create a page monitor |
314318| monitor | [ ` monitor_with_webhook_async.py ` ] ( examples/monitor/monitor_with_webhook_async.py ) | Monitor with webhook |
315319| utilities | [ ` credits_async.py ` ] ( examples/utilities/credits_async.py ) | Check credits and limits |
0 commit comments