Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

data-base

БесплатноЗапускает вложенные скриптыНе проверен

Data acquisition for web scraping and data collection. Use when user needs "爬取数据/抓取网页/scrape data". Outputs structured JSON/CSV for analysis.

JinFanZhengот JinFanZheng★ 83 звезды на GitHub20 установок в других каталогах

Об этом скилле

Mental Model

Data acquisition is converting unstructured web content into structured data. Choose tool based on page complexity: JS-heavy → chrome-devtools MCP, static → Python requests.

Tool Selection

Page Type Tool When to Use
Dynamic (JS-rendered, SPAs) chrome-devtools MCP React/Vue apps, infinite scroll, login gates
Static HTML Python requests Blogs, news sites, simple pages
Complex/reusable logic Python script Multi-step scraping, rate limiting, proxies

Anti-Patterns (NEVER)

  • Don't scrape without checking robots.txt
  • Don't overload servers (default: 1 req/sec)
  • Don't scrape personal data without consent
  • Don't use Chinese characters in output filenames (ASCII only)
  • Don't forget to identify bot with User-Agent

Output Format

  • JSON: Nested/hierarchical data
  • CSV: Tabular data
  • Filename: {source}_{timestamp}.{ext} (ASCII only, e.g., news_20250115.csv)

Workflow

  1. Ask: What data? Which sites? How much?
  2. Select tool based on page type
  3. Extract and save structured data
  4. Deliver file path to user or pass to data-analysis

Python Environment

Auto-initialize virtual environment if needed, then execute:

cd skills/data-base

if [ ! -f ".venv/bin/python" ]; then
    echo "Creating Python environment..."
    ./setup.sh
fi

.venv/bin/python your_script.py

The setup script auto-installs: requests, beautifulsoup4, pandas, web scraping tools.

References (load on demand)

For detailed APIs and templates, load: references/REFERENCE.md, references/templates.md

Установить data-base в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/REFERENCE.mdreferences/mcp-tools.mdreferences/templates.mdrequirements.txtsetup.sh

FAQ

Что делает скилл data-base?

Data acquisition for web scraping and data collection. Use when user needs "爬取数据/抓取网页/scrape data". Outputs structured JSON/CSV for analysis.

Как установить скилл data-base?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл data-base запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить data-base с