
Website Content Crawler
Pricing
Pay per usage

Website Content Crawler
Crawl websites and extract text content to feed AI models, LLM applications, vector databases, or RAG pipelines. The Actor supports rich formatting using Markdown, cleans the HTML, downloads files, and integrates well with 🦜🔗 LangChain, LlamaIndex, and the wider LLM ecosystem.
4.6 (38)
Pricing
Pay per usage
1307
Total users
49.3k
Monthly users
6.9k
Runs succeeded
>99%
Issue response
5.3 days
Last modified
7 days ago
You can access the Website Content Crawler programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1from apify_client import ApifyClient2
3# Initialize the ApifyClient with your Apify API token4# Replace '<YOUR_API_TOKEN>' with your token.5client = ApifyClient("<YOUR_API_TOKEN>")6
7# Prepare the Actor input8run_input = {9 "startUrls": [{ "url": "https://docs.apify.com/academy/web-scraping-for-beginners" }],10 "useSitemaps": False,11 "respectRobotsTxtFile": True,12 "crawlerType": "playwright:adaptive",13 "includeUrlGlobs": [],14 "excludeUrlGlobs": [],15 "initialCookies": [],16 "proxyConfiguration": { "useApifyProxy": True },17 "keepElementsCssSelector": "",18 "removeElementsCssSelector": """nav, footer, script, style, noscript, svg, img[src^='data:'],19[role=\"alert\"],20[role=\"banner\"],21[role=\"dialog\"],22[role=\"alertdialog\"],23[role=\"region\"][aria-label*=\"skip\" i],24[aria-modal=\"true\"]""",25 "clickElementsCssSelector": "[aria-expanded=\"false\"]",26}27
28# Run the Actor and wait for it to finish29run = client.actor("apify/website-content-crawler").call(run_input=run_input)30
31# Fetch and print Actor results from the run's dataset (if there are any)32print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])33for item in client.dataset(run["defaultDatasetId"]).iterate_items():34 print(item)35
36# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Website Content Crawler API in Python
The Apify API client for Python is the official library that allows you to use Website Content Crawler API in Python, providing convenience functions and automatic retries on errors.
Install the apify-client
$pip install apify-client
Other API clients include: