
Site Crawler
This is a practical implementation for crawling documentation sites and blogs while respecting robots.txt and rate limits. It combines trafilatura for clean content extraction with BeautifulSoup for structure parsing, then converts everything to markdown for RAG ingestion. The code handles common doc frameworks like Docusaurus and Sphinx, extracts sidebar navigation and prev/next links, and includes sitemap discovery. Worth noting that it tracks visited URLs and content hashes for incremental updates, which matters when you're maintaining a knowledge base that needs to stay current. The robots.txt checker is solid, and the configurable rate limiting (defaults to 1 second between requests) keeps you from being a bad citizen.
- skills.sh installs
- 358
- GitHub stars
- 2
- last updated
- Aug 21, 2026
Install
$ npx -y skills add mindmorass/reflex --skill site-crawler --agent claude-codeInstalls into .claude/skills of the current project.
Files
Site Crawler Skill
Respectfully crawl documentation sites and web content for RAG ingestion.
Overview
Documentation sites, blogs, and knowledge bases contain valuable structured content. This skill covers:
- Respectful crawling (robots.txt, rate limiting)
- Structure-preserving extraction
- Incremental updates (only fetch changed pages)
- Sitemap-based discovery
Prerequisites
# HTTP client
pip install httpx
# HTML parsing
pip install beautifulsoup4 lxml
# Clean article extraction
pip install trafilatura
# Markdown conversion
pip install markdownify
Crawling Principles
1. Be Respectful
- Always check robots.txt
- Rate limit requests (1-2 seconds between)
- Identify yourself with a User-Agent
- Don't overload servers
2. Be Efficient
- Use sitemaps when available
- Track what's been crawled
- Only re-fetch changed content
- Skip non-content pages (login, search results)
3. Be Smart
- Preserve document structure
- Extract meaningful content only
- Handle pagination
- Detect and follow documentation structure
Core Implementation
Robots.txt Handling
#!/usr/bin/env python3
"""Robots.txt compliance."""
Sponsors
Details
- Repository
- github.com/mindmorass/reflex
- Category
- Marketing & SEO
- First seen
- Jun 3, 2026