Web To Markdown Llm
Pricing
from $2.00 / 1,000 results
Web To Markdown Llm
Pricing
from $2.00 / 1,000 results
Rating
0.0
(0)
Developer
Oleksii Tereshchenko
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
Web to LLM Markdown & RAG Clean Extractor
๐ Convert any website, documentation hub, or blog into clean, token-optimized Markdown ready for LLMs, Claude, GPT-4, Cursor, and RAG pipelines.
๐ก Why this Actor?
When scraping the modern web for AI context windows or Vector DBs (Pinecone, Qdrant, Chroma), standard scrapers dump bloated HTML full of:
- Cookie consent banners & popups
- Navbars, footers & sidebar links
- Tracking scripts, styles & SVG icons
- Ads, promotional banners & social share widgets
This boilerplate wastes up to 70% of your LLM context tokens and severely degrades model reasoning.
Web to LLM Markdown Extractor solves this by:
- Intelligently identifying main content (
<article>,<main>,#content,.docs-content, etc.). - Aggressively stripping boilerplate (cookie banners, scripts, navigation, ads).
- Converting to clean, semantic Markdown (ATX headings, fenced code blocks, bullet points).
- Calculating token & word metrics so you know exact context costs upfront.
- Lightweight & Blazing Fast: Pure HTTP crawler powered by Crawlee & Cheerio. No heavy browser overhead, uses minimal RAM (128โ256 MB), and crawls hundreds of pages in seconds.
โ๏ธ Features
- ๐ Single URL or Full Domain Crawling: Scrape a single article or crawl an entire documentation site with
maxDepthcontrol. - ๐ฏ Domain-Bound Crawling: Stays on the same hostname so you don't leak into external sites.
- ๐งน Deep Noise Filtering: Automatically drops cookies, footers, headers, ads, and inline styles.
- โก Token Saver Mode (
stripImages): Stripimage tags to minimize LLM token usage. - ๐ Clean Text Mode (
stripLinks): Convert hyperlinks into plain text for pure text embedding. - ๐ Token & Word Metrics: Provides instant
tokenEstimateandwordCountfor every page.
๐ฅ Input Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
startUrls | Array | ["https://docs.github.com/en/get-started"] | Starting URLs or docs hubs to process. |
maxPages | Integer | 10 | Maximum number of pages to crawl and convert. |
maxDepth | Integer | 1 | Crawl depth: 0 = only given URLs, 1 = follow internal links 1 level deep. |
stripImages | Boolean | true | Remove image tags to save prompt context tokens. |
stripLinks | Boolean | false | Convert hyperlinks to plain text. |
Example Input:
{"startUrls": [{ "url": "https://docs.github.com/en/get-started" }],"maxPages": 15,"maxDepth": 1,"stripImages": true,"stripLinks": false}
๐ค Output Dataset Format
Each record in the Apify dataset contains clean metadata and pure Markdown:
{"url": "https://docs.github.com/en/get-started","title": "Get started with GitHub documentation","description": "Learn how to use GitHub with step-by-step guides and documentation.","author": null,"language": "en","markdown": "# Get started with GitHub documentation\n\nGitHub is a code hosting platform for version control and collaboration...\n\n## Quickstart\n\n1. Sign up for GitHub\n2. Create a repository\n3. Start collaborating\n","wordCount": 384,"tokenEstimate": 450,"crawledAt": "2026-09-17T15:10:00.000Z"}
๐ ๏ธ Python & LangChain Quickstart
Use the Apify Python client to ingest web docs directly into your RAG pipeline:
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")# Run the Actorrun = client.actor("vujofix/web-to-markdown-llm").call(run_input={"startUrls": [{"url": "https://docs.stripe.com/api"}],"maxPages": 20,"maxDepth": 1,"stripImages": True})# Fetch cleaned Markdown recordsdataset = client.dataset(run["defaultDatasetId"]).list_items().itemsfor page in dataset:print(f"Title: {page['title']}")print(f"Estimated Tokens: {page['tokenEstimate']}")# Pass page['markdown'] to your Vector Store or LLM context
๐ฐ Pricing
- Pay-Per-Event: $2.00 / 1,000 pages
- Incredibly cost-effective: A full documentation scrape of 100 pages costs just $0.20, saving hours of manual cleanup and hundreds of dollars in wasted LLM tokens.
๐ก๏ธ License
Apache-2.0