scrapling::crawl
BFS-crawl from start_urls (follow same-domain links), extract per page, stream items.
- allowed_domainsstring[]
only follow links on these hosts
- concurrencyinteger
- css_selectorstring
scope the render to this CSS subtree (e.g. a page's content div)
- download_delaynumber
seconds to wait between crawl rounds
- fetcherstringenum http, stealthy, dynamic
- formatstringenum markdown, text
render page body to this format
- impersonatestring
- include_htmlboolean
- main_content_onlyboolean
strip nav/scripts/hidden before rendering
- max_depthinteger
- max_pagesinteger
- same_domainboolean
follow only same-host links (default true)
- selectorsobject[]
- allboolean
return every match as a list
- attrstring
extract this attribute instead of text
- cssstring
- htmlboolean
extract inner HTML instead of text
- namestringrequired
- regexstring
- xpathstring
- start_urlsstring[]
- stream_namestring
stream to emit items on (default scrapling::crawl)
- urlstring
single start URL (alternative to start_urls)
- itemsobject[]
a small sample of streamed items
Empty object - statsobject
- crawledinteger
- errorsinteger
- itemsinteger
- stoppedstring
- streamobject
read the full item stream via stream::on with this name + group_id
- group_idstring
- namestring