Llm Ready Documentation Scraper
by direct_duty
Developers and AI agents need to read documentation (e.g. Stripe Docs, Next.js Docs), but standard scrapers return noisy HTML that includes: navigatio...
Opens on Apify.com
About Llm Ready Documentation Scraper
Developers and AI agents need to read documentation (e.g. Stripe Docs, Next.js Docs), but standard scrapers return noisy HTML that includes: navigation bars headers / footers ads / cookie banners This Actor must return pure content-only Markdown, suitable for vectorization and semantic search.
What does this actor do?
Llm Ready Documentation Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
LLM-Ready Documentation Scraper Crawl any documentation website and get clean, formatted Markdown perfect for LLMs and RAG (Retrieval-Augmented Generation) applications. ## 🎯 Problem Developers and AI agents need to read documentation (Stripe Docs, Next.js Docs, etc.), but standard scrapers return messy HTML with navbars, footers, and ads. This Actor solves that by delivering pure, clean Markdown. ## ✨ Features - Clean Markdown Output: Strips navigation, sidebars, footers, scripts, and ads - Smart Content Detection: Automatically finds the main content area - Token Counting: Each page includes token count for LLM context planning - Merge Mode: Combine all pages into a single full_documentation.md file - Configurable Depth: Control how deep to crawl - URL Filtering: Include/exclude patterns using globs ## 📥 Input | Field | Type | Description | |-------|------|-------------| | startUrl | String | The root URL of the documentation site | | maxDepth | Number | Maximum link depth to crawl (default: 10) | | maxPages | Number | Maximum pages to scrape (default: 100) | | includeGlobs | Array | URL patterns to include | | excludeGlobs | Array | URL patterns to exclude | | excludeElements | String | CSS selectors to remove | | contentSelector | String | CSS selector for main content | | mergeOutput | Boolean | Combine all pages into one file | ## 📤 Output Each page is stored in the dataset with: json { "url": "https://docs.example.com/api/auth", "title": "Authentication", "markdown": "# Authentication\n\nThis guide covers...", "tokenCount": 1523, "scrapedAt": "2024-01-15T10:30:00.000Z" } When mergeOutput is enabled, a combined full_documentation.md is saved to the Key-Value Store. ## 🚀 Usage Examples ### Crawl Stripe Docs json { "startUrl": "https://stripe.com/docs/api", "maxPages": 50, "mergeOutput": true } ### Crawl with Custom Content Selector json { "startUrl": "https://nextjs.org/docs", "contentSelector": ".docs-content", "excludeElements": "nav, footer, .sidebar, .carbon-ads", "maxDepth": 3 } ## 🔧 Technical Details - Built with TypeScript and the Apify SDK - Uses CheerioCrawler for fast HTML parsing - Turndown library for HTML-to-Markdown conversion - gpt-tokenizer for accurate token counting ## 📝 License ISC
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Llm Ready Documentation Scraper now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- direct_duty
- Pricing
- Paid
- Total Runs
- 13
- Active Users
- 2
Related Actors
Web Scraper
by apify
Cheerio Scraper
by apify
Website Content Crawler
by apify
Legacy PhantomJS Crawler
by apify
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support