mindmorass avatar

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-code

Installs 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

More from mindmorass/reflex

All 3
1davila7 avatarab-test-setupdavila7/claude-code-templatesWhen the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this 356skills.sh installs
2guia-matthieu avatardotcom-secretsguia-matthieu/clawfu-skillsBuild high-converting sales funnels using Russell Brunson's proven framework Use when: **Launching an online product** and need a complete funnel strategy; **Co349skills.sh installs
3davila7 avataremail-systemsdavila7/claude-code-templatesEmail has the highest ROI of any marketing channel. $36 for every $1 spent. Yet most startups treat it as an afterthought - bulk blasts, no personalization, lan347skills.sh installs
4bobmatnyc avatarvercel-observabilitybobmatnyc/claude-mpm-skillsVercel observability for Web Analytics, Speed Insights, logs, tracing, alerts, and observability tooling. Use when monitoring performance or debugging productio345skills.sh installs
5onewave-ai avataremail-subject-line-optimizeronewave-ai/claude-skillsA/B test subject line variations using proven copywriting frameworks. Predict open rates based on historical performance.337skills.sh installs
640rty-ai avatarshopify-admin-skills40rty-ai/shopify-admin-skillsMaster skill collection for Shopify store operators. Provides access to all merchandising, marketing, support, and operations capabilities.329skills.sh installs