Skip to content

Website Content Crawler

Try for free

Crawl whole websites and extract clean text and Markdown for AI models, vector databases, and RAG pipelines. Removes navigation and boilerplate and keeps titles, metadata, and links.

📄 Website Content Crawler

Turn public docs, help centers, and blogs into clean Markdown and text your RAG pipeline can index.

Built for teams who put customer-facing sites into a vector store or agent knowledge base and need a crawl that finishes, even when one URL fails.

Watch the video tutorial to see how it works:

✨ Features

  • 🔗 Start from startUrls and follow same-site links under that path, up to maxCrawlDepth, maxCrawlPages, and maxResults.
  • 🧭 Widen or narrow the crawl with includeUrlGlobs and excludeUrlGlobs. Start URLs are still fetched when an exclude glob matches them. In a glob ? is any one character; write \? for a question mark. An exclude glob that would skip every link only because of ? (for example **/*?*) is read as meant: it skips URLs with a query string.
  • 📝 Save text and, when saveMarkdown is on, markdown from the page you actually downloaded. A JSON or plain-text response is saved as text. A page whose sentences exist only after JavaScript is opened in Chrome, and the saved text is the text that page shows. Server-rendered pages stay on HTTP unless you set a browser input.
  • 🧹 Clean the DOM with removeElementsCssSelector and keepElementsCssSelector, then run htmlTransformer: readable text (readableText, the default), readable text with fallback (readableTextIfPossible), the page's main element (mainElement), the main element with boilerplate removed (mainElementClean), or none.
  • 📋 Readable text keeps product specs: spec tables, definition lists and label/value lists (Voltage 12 V, CCA 310) that sit outside the article block are added after the readable text with their heading, so a product page keeps its specs. Menus, sidebars, footers, forms and hidden elements are not added, and nothing is removed from the readable text.
  • 🏷️ Keep real page metadata: title, description, author, keywords, languageCode, canonicalUrl, openGraph, jsonLd, and response headers (cookie and authorization headers are left out).
  • 🗺️ Optionally enqueue pages from sitemaps (useSitemaps) and from /llms.txt plus same-host Markdown links (useLlmsTxt).
  • 🤖 Optionally skip paths disallowed by robots.txt (respectRobotsTxtFile).
  • 📎 With saveFiles or saveContentTypes, download linked files and store them only after the magic bytes match. PDF text (every page) and DOCX text are extracted when the file contains them. CSV is stored as text. Images (JPEG, PNG, GIF, WebP, AVIF, HEIC, BMP, ICO, TIFF), videos (MP4, MOV, WebM) and audio (MP3, OGG, WAV) are stored as files with image/*, video/* or audio/*.
  • 🎨 Save a site's stylesheets and scripts: when saveContentTypes names text/css or a JavaScript type (application/javascript, text/javascript), the same-site files each page loads (<link rel="stylesheet">, <script src>, style/script preloads) are saved to the key-value store too, once per run, each as a dataset row with its fileUrl. Same-site means the page's host or its subdomains (such as static. or cdn.); scripts from other sites' CDNs are not saved. Wildcards like text/* or application/* do not include them; name the type. Each saved file counts toward maxCrawlPages. For the pages' own HTML with these tags kept, set htmlTransformer to none, clear removeElementsCssSelector and turn on saveHtmlAsFile.
  • 🧾 A failed URL is written to the errors dataset. The rest of the crawl continues.
  • 🔐 A page that redirects to a login or sign-in page is not saved, and its links are not followed. When that happens to a start URL, the run says so: "The page redirected to a login page; content behind a login can't be scraped."
  • 💬 Every run ends with a status message: how many pages (and files without text) were saved and whether maxCrawlPages or maxResults stopped the crawl, or, when nothing was saved, why (HTTP status, bot check, robots.txt, login page).
  • 🌍 proxyConfiguration uses Scrapely Proxy. When proxy is on and neither a group nor a country is set, pages load through datacenter IPs first; a site that blocks them (HTTP 401, 403, 429, 503, a challenge page, an error or a near-empty page) moves to residential IPs for the rest of the run. A group or country you pick is used as given.

Server-rendered pages are fetched over HTTP, which keeps runs fast and light. When the HTML is only a script that writes the sentences a visitor would see, that URL is loaded in Chrome and the dataset stores that rendered text. When the browser times out on a page, that page is tried again a little later, up to maxRequestRetries times. A page the site refuses over HTTP (401 or 403 after the retries on datacenter and residential IPs) is loaded in Chrome and saved when Chrome gets it; when Chrome is refused on two pages of a site, the rest of that site stays on HTTP. Chrome is also used when you set clickElementsCssSelector, dynamicContentWaitSecs, maxScrollHeightPixels, removeCookieWarnings, or blockMedia. Those inputs are applied on that page: matching elements are clicked, Chrome waits the number of seconds you set, the page is scrolled up to the pixel limit, cookie and consent banners are removed, and stylesheets are left unloaded when you ask for that. Chrome never downloads images, fonts, video or audio. The form does not include saveScreenshots, summarize, or pageFunction. This actor does not save screenshots, write summaries, or run a page function.

🚀 Why teams use this

  • Production caps. maxCrawlPages and maxResults stop a runaway crawl of a large docs site.
  • One bad URL does not kill the run. You get the pages that loaded, and the failures sit in a separate dataset with errorCode and errorExplanation.
  • Output is ready for a vector index: plain text, Markdown when you ask for it, and source metadata you can cite.
  • Duplicate pages found by crawling that share a canonical URL are not saved twice, and the run status says how many were skipped. Start URLs you list are always saved, even when they share a canonical URL (e.g. ?page=1, ?page=2 of one list); only a start URL that gives exactly a page already saved (same final URL after redirects, or same canonical URL and text) is saved once. Set ignoreCanonicalUrl when the site publishes a canonical you do not want to trust.
  • Scheduling, dataset export, and proxy are handled by scrape.ly. You do not have to host the crawler.

💡 Use cases

  • Turn documentation or a knowledge base into Markdown for a vector database.
  • Feed a whole site into a RAG pipeline or a custom GPT.
  • Audit a site's content and page titles for SEO.

🧪 Example input

{
  "blockMedia": false,
  "maxCrawlPages": 10,
  "proxyConfiguration": {
    "useScrapelyProxy": true
  },
  "respectRobotsTxtFile": true,
  "startUrls": [
    {
      "url": "https://docs.python.org/3/tutorial/"
    }
  ],
  "storeSkippedUrls": false,
  "useLlmsTxt": false,
  "useSitemaps": false
}

🧾 Sample output

One item from a real run of the example input, shortened. Long text is cut and lists show their first entries.

{
  "url": "https://docs.python.org/3/tutorial/",
  "crawl": {
    "loadedUrl": "https://docs.python.org/3/tutorial/",
    "loadedTime": "2026-10-13T19:23:30.526Z",
    "depth": 0,
    "httpStatusCode": 200,
    "contentLengthBytes": 37315,
    "contentType": "text/html"
  },
  "metadata": {
    "canonicalUrl": "https://docs.python.org/3/tutorial/index.html",
    "title": "The Python Tutorial — Python 3.15.0 documentation",
    "description": "Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented…",
    "languageCode": "en",
    "openGraph": [
      {
        "property": "…",
        "content": "…"
      },
      {
        "property": "…",
        "content": "…"
      }
    ],
    "headers": {
      "server": "nginx",
      "content-type": "text/html",
      "last-modified": "Tue, 13 Oct 2026 15:50:36 GMT",
      "etag": "\"6ace534c-91c3\"",
      "x-clacks-overhead": "GNU Terry Pratchett",
      "strict-transport-security": "max-age=315360000; includeSubDomains; preload",
      "content-encoding": "gzip",
      "via": "1.1 varnish, 1.1 varnish",
      "accept-ranges": "bytes",
      "age": "1527",
      "date": "Tue, 13 Oct 2026 19:23:30 GMT",
      "x-served-by": "cache-lga-kjfk8660037-LGA, cache-pdk-kpdk2140044-PDK",
      "x-cache": "HIT, HIT",
      "x-cache-hits": "62, 0",
      "x-timer": "S1791919410.165256,VS0,VE1",
      "vary": "Accept-Encoding",
      "content-length": "7713"
    }
  },
  "text": "The Python Tutorial\n\nTip\n\nThis tutorial is designed for\n\nprogrammers\nthat are new to the Python language,\n\nnot\n\nbeginners\nwho are new to programming.\n\nPython…",
  "markdown": "# The Python Tutorial\n\nTip\n\nThis tutorial is designed for\n*programmers* that are new to the Python language,\n**not** *beginners* who are new to programming.\n…"
}

📥 Input

Required: startUrls, proxyConfiguration.

FieldWhat it does
startUrlsPages to crawl, or a requestsFromUrl list of URLs. An address without http:// or https:// (example.com/docs) is crawled as https://.
includeUrlGlobs, excludeUrlGlobsExtra pages to allow, or linked pages to skip.
maxCrawlDepth, maxCrawlPages, maxResultsDepth, fetch count, and saved-item count.
useSitemaps, useLlmsTxt, respectRobotsTxtFileSitemap discovery, /llms.txt, robots.txt.
keepUrlFragments, ignoreCanonicalUrlKeep #fragments in the URL, or save crawled pages even when the canonical was already saved (start URLs are always saved).
proxyConfigurationScrapely Proxy on or off, with optional proxy groups and country, or your own proxy URLs.
initialCookies, customHttpHeadersSent on requests. A custom User-Agent header is not applied.
initialConcurrency, maxConcurrencyParallel fetches, capped at 8.
requestTimeoutSecs, maxRequestRetries, maxSessionRotationsTimeout and retry limits.
minFileDownloadSpeedKBpsAbort a file whose average speed stays under this for more than 10 seconds.
ignoreHttpsErrorsContinue when the TLS certificate does not verify.
dynamicContentWaitSecsAbove 0, open the page in Chrome and wait that many seconds before saving. 0 does not open Chrome by itself.
maxScrollHeightPixelsAbove 0, open the page in Chrome and scroll down to that height. 0 does not scroll.
removeCookieWarningsWhen on, open the page in Chrome and remove short cookie, consent, or GDPR banners.
blockMediaWhen on, open the page in Chrome and do not load stylesheets either. Chrome never loads images, fonts, video or audio, since only text, Markdown and HTML are saved; image links stay in the page. Scripts still load.
clickElementsCssSelectorWhen set, open the page in Chrome and click matching elements that do not leave the page.
waitForSelectorFail that URL if the selector is missing from the fetched HTML. In Chrome, a non-zero dynamic wait also waits for this selector. softWaitForSelector does not fail the URL.
expandIframesFetch up to five same-host iframes and inline them.
keepElementsCssSelector, removeElementsCssSelectorDOM keep and remove lists.
htmlTransformer, readableTextCharThresholdWhich cleaner runs, and when readable text is long enough to keep.
aggressivePruneDrop long lines that already appeared on an earlier page.
saveMarkdown, saveHtml, saveHtmlAsFileMarkdown field, HTML field, or an HTML snapshot in the key-value store.
saveContactsA contacts field per page: the lines of the whole page that hold a phone number or an email, tel:/mailto: link targets and address blocks, also from the header, footer and other parts the transformer leaves out of text. At most 30 lines per page.
saveFiles, saveContentTypesDownload linked documents or responses whose content type matches. Images shown with <img> are saved with image/*; same-site stylesheets and scripts that pages load are saved when text/css or a JavaScript type is named.
debugMode, debugLog, storeSkippedUrlsTransformer lengths, verbose logs, and a SKIPPED_URLS record.

saveScreenshots, summarize, and pageFunction are not on the form. A customer cannot request a screenshot, a summary, or a page function.

crawlerType, signHttpRequests, clientSideMinChangePercentage, renderingTypeDetectionPercentage, reuseStoredDetectionResults, and stickyContainerCssSelector are not on the form. A run that sends one of them is rejected and does not start. This actor does not sign Web Bot Auth requests and does not guess whether a page is client-rendered.

Bodies larger than 20 MB are not stored. PDF text is read from every page of the file; if one file's text passes 8 MB, the rest is left out (the row's pdfPagesRead is then lower than pdfPageCount), because one saved item must stay under the 10 MB dataset upload limit.

📤 Output

Each saved page is one default-dataset item. Empty fields are omitted. false and 0 are kept when they are real.

  • url
  • crawl.loadedUrl, crawl.loadedTime, crawl.referrerUrl, crawl.depth, crawl.httpStatusCode, crawl.contentLengthBytes, crawl.contentType
  • metadata.canonicalUrl, metadata.title, metadata.description, metadata.author, metadata.keywords, metadata.languageCode, metadata.openGraph, metadata.jsonLd, metadata.headers
  • text
  • markdown when saveMarkdown produced Markdown
  • contacts when saveContacts is on and the page has phone numbers, emails or address blocks
  • pdfPageCount, pdfPagesRead and pdfPageStarts for a PDF file: its page count, how many pages are in text (fewer only when the text passed 8 MB), and the character position in text where each page begins, so you can cite page numbers or read only some pages
  • markdownSkipped when the run's time was nearly up: a page Chrome had already loaded is saved at once, without Markdown and without the HTML transformer (text is the whole page, html is the page as Chrome returned it), and the crawl stops so the run can finish. Raise the run timeout to get the full row.
  • html when saveHtml is on
  • htmlUrl when a snapshot was stored
  • fileUrl for a downloaded file: its key-value store URL (the file's own bytes and content type)
  • debug when debugMode is on

Failed URLs go to the errors dataset: url, attempts, httpStatus, errorCode, retryable, errorExplanation, advice, and sometimes debug.contentType. The response body is not stored there.

Downloaded files use key-value keys prefixed with file- and are linked from their row's fileUrl. HTML snapshots use html-. This actor does not write screenshotUrl or summary.

❓ FAQ

Can I schedule it or use the API? Yes. Save your input as a task and schedule it, or start runs and read the results through the Scrape.ly API, CLI, or from AI agents through the Scrape.ly MCP server.

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.