Skip to main content
Crawling a whole site to get ten pages wastes time and credits. Instead, list the site’s URLs with Map (1 credit), pick the ones you want in your code, and batch scrape only those. This guide gets a one-line summary and the main APIs of every asyncio reference page in the Python docs. You need pip install spidra and your API key in SPIDRA_API_KEY.

1. Map the site

search ranks the URLs by how well they match, using the words in the URL and the link text:

2. Pick the pages you want

You have the URLs as a list, so filter them however you like. Here, only the library reference pages:
Each link also has a title (its link text), which helps when URLs alone don’t say enough.

3. Scrape just those pages

The description on each schema field matters: without it, one page put its whole summary in topic and left main_apis empty. The whole run cost 28 credits: 1 for the map and 27 for the ten pages (1 each, plus AI).

Map or crawl?

If something goes wrong

  • Map found nothing. It costs nothing. Try sitemap="skip" (the sitemap may be out of date), or crawl the site instead; some sites build their links with scripts.
  • Too many URLs match. Lower limit, make search more specific, or filter harder in step 2.
  • Over 50 pages. Send them in batches of 50, as in Scrape a list of URLs to CSV.