Installation
Basic usage
The SDKs’crawl() starts the crawl, waits for it to finish and returns every page.
Output (Python)
Scrape options
scrapeOptions sets the formats and page options for every page, like in Scrape. Without it, every page comes back as Markdown.
Start a crawl and check later
A crawl runs in the background. Start it, keep itsid, and check on it when you want.
Response
creditsReserved is set aside from your balance when the crawl starts: limit pages at the cost of one page. When the crawl ends, you pay for the pages it read and the rest comes back.
Checking crawl status
Response
Response
Choose which pages to read
cURL
/3/ and reads three pages, all under /3/library/.
Cancelling a crawl
Response
completed.
Failed and blocked pages
Add?errors=1 to the status URL to see the pages that failed, and the ones robots.txt doesn’t allow.
Response
Important details
- Each page costs what a scrape of it costs: 1 credit, 5 with
json,questionorhighlights. - A crawl needs enough credits for its reservation. Lower
limitif your balance is short. - robots.txt is always respected.
- Results are kept for 24 hours after the crawl ends.