MA

mdowis/anansi

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

118 stars 22 forks Качество 70 Тренд 8Apache-2.0

mdowis/anansi — это кандидат на MCP-сервер, импортированный из https://github.com/mdowis/anansi.

Обзор

mdowis/anansi — это кандидат на MCP-сервер, импортированный из https://github.com/mdowis/anansi.

Обзор (машинный перевод)

Паук, который учится.

Самовосстанавливающийся веб-скрейпер для враждебных сайтов — и управляемый любым LLM.

Каждый скребок начинает работать. Вопрос в том, сколько времени пройдёт, прежде чем он сломается. Ананси построен на Другое предположение: Веб — это враждебный и нестабилен, и ваш скрепер должен с этим справляться Без твоего участия.

Когда сайт меняет свою структуру, Ананси всё равно находит данные и запоминает исправление. Когда страница нуждается в браузере для рендеринга, она бесшумно переключается на браузер. Когда обнаружение ботов появляется в Это создаёт связную идентичность — совпадающий отпечаток пальца, персона и заголовки TLS — что работает для того, чтобы обходить обнаружение, а не срабатывать на неё. А при повторном сканировании страницы остаются неизменными пропускается ещё до того, как запрос будет сделан. В результате получается краулер, который переживает переработки, обрабатывает Враждебные сайты, и с каждым днём они становятся лучше.

Поставляется с MCP сервером, чтобы любая LLM могла провести полный обход разговоров.


Основные моменты

  • Селекторы, которые сами себя восстанавливают — CSS-селекторы имеют рейтинг уверенности; когда один из них брейк, соревнуются четыре стратегии исцеления, и победитель остаётся на практике. Как это работает →

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

The spider that learns.

A self-healing web scraper for hostile sites — and it’s driveable by any LLM.

Every scraper starts working. The question is how long before it breaks. Anansi is built on a different assumption: the web is adversarial and unstable, and your scraper should handle that without your involvement.

When a site changes its layout, Anansi finds the data anyway and remembers the fix. When a page needs a browser to render, it switches to one silently. When bot detection gets in the way, it presents a coherent identity — matched TLS fingerprint, persona, and headers — that works to slip past detection instead of tripping it. And when you re-crawl, unchanged pages are skipped before a request is even made. The result is a crawler that survives redesigns, handles hostile sites, and gets better the longer it runs.

Ships with an MCP server so any LLM can drive a full crawl through conversation.


Highlights

  • Selectors that repair themselves — CSS selectors carry confidence scores; when one breaks, four healing strategies compete and the winner is persisted. How it works →
  • A browser only when you need one — every response is checked for JS shells and silently retried in a stealth Playwright browser, cached per domain. How it works →
  • A coherent anti-bot identity — matched TLS/HTTP-2 fingerprint, persona, and headers, with vendor-aware handling of Cloudflare, Akamai, and DataDome, plus an opt-in Patchright engine for CDP-level stealth. Anti-bot & identity →
  • Re-crawls that skip the unchanged — ETag, Last-Modified, content hashing, and sitemap `` filtering skip pages before the request goes out. Capabilities →
  • Data you can trust — attach a Pydantic item_schema and every scraped item is validated and coerced before it hits your database. Getting started →
  • Driveable by any LLM — a FastMCP server exposes 17 tools so an agent can fetch, extract, crawl, and screenshot through conversation. MCP server →

See the full capability reference for everything else — proxy rotation, adaptive rate limiting, URL canonicalization, JS interaction, network capture, and more.


Install

# Core install
pip install "git+https://github.com/mdowis/anansi"

# For browser-based fetching (Cloudflare bypass, JS rendering):
playwright install chromium
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →