Scrape Adaptive logo

Scrape Adaptive

Community
GeekFamilyCorp
scrape-adaptive

Collecte des pages web de façon robuste et respectueuse avec Scrapling (BSD-3 : parseur adaptatif qui retrouve un élément après refonte du site, spiders pause/reprise, robots.txt, serveur MCP natif) et Playwright en repli pour les pages rendues en JavaScript. À utiliser quand l'utilisateur veut « scraper », « récupérer les nouveautés d'un site », « extraire une liste de titres/dates/prix », « mon sélecteur ne marche plus depuis la refonte », « crawler un catalogue avec reprise », « brancher le MCP Scrapling », ou préparer un collecteur pour un site exigeant (encodage, rythme, conditions d'usage). Applique robots.txt lu avec le User-Agent déclaré, throttle, provenance de chaque donnée, inventaire des données locales avant tout nouveau collecteur. Fournit scripts/fetch_adaptive.py (--dry-run). Ne pas utiliser pour surveiller un changement de page dans le temps → watch-changes, ni pour consommer une API ou un flux RSS déjà existant (appel direct).

Overview

PublisherGeekFamilyCorp
RepositoryTricorderKit
Skill namescrape-adaptive
Stars
32
Forks
1
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by GeekFamilyCorp on GitHub. Read the source before you install it.

Installation

Install the Scrape Adaptive AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/GeekFamilyCorp/TricorderKit/tree/main/cowork-plugins/tk-data-ops/skills/scrape-adaptive
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GeekFamilyCorp/TricorderKit.git /tmp/TricorderKit
mkdir -p .claude/skills
cp -r /tmp/TricorderKit/cowork-plugins/tk-data-ops/skills/scrape-adaptive .claude/skills/scrape-adaptive
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Scrape Adaptive in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Scrape Adaptive on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Scrape Adaptive is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

scrape-adaptive — Collecter sans casser, ni la cible, ni le pipeline

Un collecteur meurt de deux façons : la cible le bloque (trop vite, mauvais User-Agent, robots ignoré), ou la cible change (refonte HTML, sélecteur mort). Scrapling traite la seconde avec son parseur adaptatif ; la première se traite par discipline. Ce skill impose les deux.

1. Avant d'écrire une ligne (R73)

Lire l'inventaire des données locales : ce qu'on veut collecter existe peut-être déjà (base SQLite d'un pipeline, export précédent, flux RSS, API ouverte). Un collecteur qui refait ce qu'une base contient déjà coûte des requêtes à la cible pour rien. Écrire en une ligne ce que le collecteur apportera en plus ; si la ligne est vide, ne pas collecter.

2. Discipline de collecte

  1. robots.txt avec notre User-Agent (R74) — le lire en envoyant le même User-Agent que le collecteur ; certains sites servent un robots.txt différent ou un 403 selon l'agent, et un 403 sur robots.txt vaut refus total, pas feu vert.
  2. User-Agent nommé : NomDuProjetBot/0.1 (+url-de-contact) — jamais un UA de navigateur déguisé sur une cible qui l'interdit. Le nom du projet est une donnée de configuration.
  3. Throttle : download_delay ≥ 2 s, concurrent_requests_per_domain = 1, respect de Crawl-delay s'il existe, autothrottle_enabled pour s'adapter.
  4. Provenance (R41) : chaque enregistrement porte url, collecte_le (ISO 8601), collecteur, version_selecteur, hash_contenu. Sans provenance, une donnée n'est pas réutilisable.
  5. Reprise : les spiders Scrapling reprennent sur checkpoint ; un lot interrompu redémarre où il s'est arrêté, il ne recommence pas de zéro.
  6. Sortie : JSON Lines, un objet par page, écrit en append ; le script rend 0 seulement s'il a écrit au moins un enregistrement (R71).

3. Trois niveaux de fetch, dans l'ordre

NiveauOutil ScraplingQuand
1 — HTTPFetcher.get(url)page servie en HTML complet ; c'est le défaut
2 — navigateurDynamicFetcher.fetch(url) (Playwright)contenu injecté en JS, scroll infini
3 — furtifStealthyFetcher.fetch(url)seulement si la cible autorise la collecte et bloque les clients non-navigateurs

Monter d'un niveau coûte 10× plus de ressources et de risque ; on ne monte que sur preuve (niveau 1 ne renvoie pas l'élément attendu). Le niveau 3 n'est pas un outil de contournement d'interdiction : si robots.txt dit non, aucun niveau ne s'applique.

Repli Playwright « nu » (sans Scrapling) : uniquement si Scrapling n'est pas installable ; le script scripts/fetch_adaptive.py gère le message d'installation dans les deux cas.

4. Parseur adaptatif — le point fort

Première passe, l'élément existe : page.css('.titre', auto_save=True) enregistre ses caractéristiques (balise, texte, attributs, parents, voisins) dans un SQLite local par domaine. Après refonte, page.css('.titre', adaptive=True) retrouve l'élément par similarité même si le sélecteur ne matche plus. Conséquence pratique :

  • Activer auto_save dès la première collecte, pas après la panne.
  • Journaliser version_selecteur ; quand adaptive a dû relocaliser, le noter dans la provenance et ouvrir une tâche « mettre à jour le sélecteur ».
  • Le fichier SQLite adaptatif fait partie de l'état du collecteur : sauvegardé avec lui.

Détails, MCP (scrapling-mcp, 13 tools), spiders, options : references/scrapling.md.

5. Avant la première collecte sur un site

Règle commune : lire les conditions d'utilisation du site en plus de robots.txt, et préférer un flux RSS ou une API quand ils existent (→ watch-changes pour le suivi dans le temps).

6. Séquence type

  1. Inventaire local (§1) → ce qui manque, en une ligne.
  2. python3 scripts/fetch_adaptive.py --dry-run URL → affiche le plan : UA, robots, niveau, sortie.
  3. Collecte d'une page, contrôle manuel des champs extraits.
  4. Lot de 10 avec throttle ; contrôle des compteurs (pages, erreurs, relocalisations).
  5. Lot complet en tâche planifiée, JSONL + journal ; jamais en parallèle d'une autre tâche lourde.

Changelog

  • 2026-09-07 — 0.1.0 : version initiale. Scrapling (adaptatif, spiders, MCP), trois niveaux de fetch, discipline R73/R74/R41.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Scrape Adaptive AI skill do?

Collecte des pages web de façon robuste et respectueuse avec Scrapling (BSD-3 : parseur adaptatif qui retrouve un élément après refonte du site, spiders pause/reprise, robots.txt, serveur MCP natif) et Playwright en repli pour les pages rendues en JavaScript. À utiliser quand l'utilisateur veut « scraper », « récupérer les nouveautés d'un site », « extraire une liste de titres/dates/prix », « mon sélecteur ne marche plus depuis la refonte », « crawler un catalogue avec reprise », « brancher le MCP Scrapling », ou préparer un collecteur pour un site exigeant (encodage, rythme, conditions d'u...

Why use Scrape Adaptive on TypingMind?

Because you install it once and use it with any model. Scrape Adaptive is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Scrape Adaptive in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/GeekFamilyCorp/TricorderKit/tree/main/cowork-plugins/tk-data-ops/skills/scrape-adaptive. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Scrape Adaptive?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Scrape Adaptive?

As many as you like. As long as a model supports skills, you can use Scrape Adaptive with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Scrape Adaptive AI skill free?

Yes. It is published on GitHub by GeekFamilyCorp under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇