sitefetch: Efficiently Scrape Websites for AI Model Training and Analysis
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
sitefetch is a powerful command-line utility designed to fetch and save entire websites as plain text files. This tool is particularly useful for preparing large datasets for AI model training, allowing easy consumption of web content. It offers flexible options for page matching and content selection, ensuring relevant data extraction.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introdução
sitefetch, developed by egoist, is an innovative command-line utility designed to simplify the process of extracting content from entire websites. Its primary function is to fetch web pages and consolidate their readable content into a single, clean text file, making it exceptionally useful for preparing data for AI models and large language models (LLMs). This tool streamlines the often complex task of gathering web-based information, transforming it into an easily consumable format for various analytical and machine learning applications.
Instalação
Getting started with sitefetch is straightforward. You can use it for one-off tasks without a global installation or install it globally for frequent use.
One-off usage (choose one):
bunx sitefetch
npx sitefetch
pnpx sitefetch
Install globally (choose one):
bun i -g sitefetch
npm i -g sitefetch
pnpm i -g sitefetch
Exemplos
sitefetch provides flexible options to control what and how content is fetched, allowing for precise data extraction.
Basic Usage:
To fetch an entire site and save it to a file:
sitefetch https://egoist.dev -o site.txt
Improved Concurrency:
For faster fetching of larger sites, you can specify a concurrency level:
sitefetch https://egoist.dev -o site.txt --concurrency 10
Match Specific Pages:
Use the -m, --match flag to include only specific pages based on their pathnames. This feature is powered by micromatch, offering powerful pattern matching capabilities.
sitefetch https://vite.dev -m "/blog/**" -m "/guide/**"
Content Selector:
While sitefetch uses mozilla/readability for content extraction, you can specify a custom CSS selector with --content-selector if the default extraction is not optimal for a particular page.
sitefetch https://vite.dev --content-selector ".content"
Porquê usar
sitefetch stands out as an essential tool for anyone working with web data, particularly in the realm of artificial intelligence. Its ability to transform complex website structures into clean, readable text files significantly streamlines the data preparation phase for training AI models, fine-tuning LLMs, or performing large-scale text analysis. By offering features like page matching and content selectors, it ensures that you only extract the most relevant information, saving time and computational resources. This makes sitefetch an invaluable asset for researchers, developers, and data scientists looking to leverage web content efficiently.
Links
Explore sitefetch further through these resources:
- GitHub Repository
- For programmatic use, sitefetch offers a simple API. Check out the API documentation within the repository for details on
fetchSite. - Also, consider checking out egoist's LLM chat app: Chatwise.app
Related repositories
Similar repositories that may be relevant next.

agent-memory: A Standalone Memory System for AI Coding Agents
August 23, 2026
agent-memory is a standalone memory system designed for AI coding agents, addressing the common problem of agents "forgetting" context between sessions. It provides a structured, four-layer pipeline for capturing, consolidating, and disclosing knowledge. This system ensures agents always start with relevant context, eliminating the need for manual keyword-dependent retrieval.

Codex MCP Server: Bridge Claude Code with OpenAI Codex CLI
August 23, 2026
Codex MCP Server is an essential tool that acts as a bridge between Claude Code and OpenAI's Codex CLI. It allows developers to integrate powerful AI-driven code analysis, generation, and review capabilities directly into their editor. This server wrapper enables Claude Code to fully leverage Codex's advanced AI functionalities.

AgentBridge: Local Bridge for Claude Code and Codex Collaboration
August 22, 2026
AgentBridge is an innovative local tool designed to facilitate real-time, bidirectional collaboration between Claude Code and Codex AI agents. It enables seamless cross-review, task splitting, and quota relay, allowing these powerful models to work together efficiently within a single session without manual intervention. Notably, the tool itself was largely built by Claude Code and Codex collaborating through AgentBridge.

MetaMCP: Unifying Model Context Protocol Servers with an All-in-One Gateway
August 19, 2026
MetaMCP is a powerful, self-hosted solution that acts as an aggregator, orchestrator, middleware, and gateway for Model Context Protocol (MCP) servers. It allows developers to dynamically combine multiple MCP servers into a single, unified endpoint, enhancing tool management and agent development. This TypeScript-based project simplifies the deployment and management of AI tools within a Dockerized environment.
Source repository
Open the original repository on GitHub.
16 counted GitHub visits