Data Scraper Agentのロゴ

Data Scraper Agent

コミュニティ
brucesongs
data-scraper-agent

Automated data collection from structured sources: CVE databases, threat intelligence feeds, exploit databases, and security advisories. Transform unstructured web data into structured knowledge units.

Add to TypingMind

概要

公開者brucesongs
リポジトリkali-claw
スキル名data-scraper-agent
スター
70
フォーク
18
同梱ファイル
12
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 12個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    brucesongsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Data Scraper Agent」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/brucesongs/kali-claw/tree/main/skills/data-scraper-agent
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/brucesongs/kali-claw.git /tmp/kali-claw
mkdir -p .claude/skills
cp -r /tmp/kali-claw/skills/data-scraper-agent .claude/skills/data-scraper-agent
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでData Scraper Agentを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にData Scraper Agentを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Data Scraper Agentは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Data Scraper Agent

Summary

Transform unstructured web data into structured knowledge units.

Domain: research

Skill Identity

AttributeValue
DomainIntelligence Gathering
Skill IDdata-scraper-agent
Version1.0.0
Hacker LawsLaw 3 (Intelligence Over Force), Law 9 (Systematic Over Random)
Related Skillsdeep-research, osint, knowledge-ops

Purpose

Automated data collection from structured sources: CVE databases, threat intelligence feeds, exploit databases, and security advisories. Transform unstructured web data into structured knowledge units.

Core Capabilities

  1. CVE Database Scraping: NVD, MITRE, vendor-specific databases
  2. Exploit Database Collection: Exploit-DB, GitHub security advisories
  3. Threat Intel Feeds: Parse and filter IOC feeds
  4. Structured Data Extraction: JSON/XML APIs, HTML scraping

Use Cases

  • Vulnerability Research: Collect CVEs for specific products
  • Exploit Availability: Check if public exploits exist for CVEs
  • Threat Intelligence: Aggregate IOCs for a campaign
  • Vendor Advisories: Monitor vendor security bulletins

Tools

  • BeautifulSoup: HTML parsing
  • Scrapy: Web scraping framework
  • requests: HTTP client
  • jq: JSON filtering

Scraping Strategy

  • API-first: Prefer JSON APIs (NVD 2.0, GitHub Advisory) over HTML scraping — schemas are stable, rate limits documented, content validated.
  • Pagination discipline: Always honor Link: rel="next" headers or cursor-based tokens; never scrape past published page limits.
  • Selective extraction: Pull only the fields you need (cve.id, descriptions[*].value, metrics.cvssMetricV31) instead of dumping full records.
  • Incremental sync: Track lastModifiedDate watermarks per source to avoid re-fetching unchanged records.

Ethical Scraping

  1. Respect robots.txt even when the legal status is unclear — courts treat ignored robots files as a hostile signal.
  2. Add a descriptive User-Agent (kali-claw-research/1.0 contact@org) so site operators can reach you.
  3. Throttle to ≤1 req/sec by default; back off exponentially on 429/503.
  4. Cache aggressively — If-Modified-Since and ETag cut load on both sides.
  5. Avoid scraping content behind authentication unless explicitly authorized.

Data Normalization

  • Coerce all timestamps to UTC ISO 8601 before persisting.
  • Map CVE severity to a canonical scale (CVSS v3.1 base score); store vendor-specific scores separately.
  • Deduplicate by (source, primary_id) tuples — the same CVE appears in NVD, MITRE, and vendor feeds with slight schema drift.
  • Preserve raw source payloads alongside normalized records for audit and reprocessing.

Common Pitfalls

  • Brittle CSS selectors — HTML structures change without notice; prefer semantic anchors (microdata, JSON-LD) when available.
  • Silent rate-limit bans — some APIs degrade quietly instead of 429; monitor response sizes and freshness.
  • Encoding bugs — non-UTF-8 sources (older vendor advisories) corrupt downstream pipelines without explicit decoding.
  • Schema drift — NVD 1.x vs 2.0 schemas differ subtly; pin client versions and run schema validation per ingest.

Pipeline Architecture

  • Extractor stage: Fetch raw content from source (HTTP GET, API call, RSS feed). Validate HTTP status and content-type before proceeding.
  • Parser stage: Convert raw bytes to structured records using schema-specific parsers (JSON, XML, HTML table). Reject malformed records to quarantine.
  • Transformer stage: Normalize fields (dates, severity, identifiers), deduplicate, and enrich with cross-references (link CVEs to advisories).
  • Loader stage: Persist normalized records to knowledge store. Use upsert semantics to handle re-ingestion without duplication.

Error Handling and Retry

  • Classify errors as retryable (network timeout, HTTP 429/503) vs non-retryable (HTTP 404, invalid API key, schema mismatch).
  • Implement exponential backoff with jitter for retryable errors: sleep(base * 2^attempt + random(0, jitter)).
  • Set per-source circuit breakers: after N consecutive failures, pause that source for a cooling period and alert.
  • Log all retry attempts with timestamps and error details for post-mortem analysis.

Source-Specific Patterns

  • NVD 2.0 API: Use startIndex + resultsPerPage pagination; filter by cpeName for product-specific queries; handle 503 during peak hours.
  • GitHub Advisory: Query by ecosystem (ecosystem=PIP), severity, and date range; paginate with cursor tokens.
  • Exploit-DB: Scrape search results with rate limiting; cross-reference CVEs via the files_cves.csv mapping file.
  • Vendor Advisories: Each vendor has unique HTML structure; write dedicated parsers per vendor, share common extraction utilities.

Performance Optimization

  • Use async I/O (aiohttp, asyncio) for parallel requests across independent sources — 10x throughput over sequential fetching.
  • Cache raw HTTP responses with requests-cache or similar; set TTL per source (NVD: 1h, vendor advisories: 24h).
  • Stream large responses instead of buffering into memory — parse JSON incrementally with ijson for large datasets.
  • Batch database writes (insert 100 records per transaction) instead of individual inserts.

Monitoring and Alerting

  • Track scrape success rate per source (target >95%); alert on sustained drops indicating source changes or IP blocks.
  • Monitor ingestion lag: time between source publication and local availability. Flag sources where lag exceeds threshold.
  • Log schema validation failures per source — rising failure rates signal upstream format changes.
  • Emit structured metrics (source, records_fetched, records_parsed, records_loaded, errors) for dashboard visualization.

Detection Methods

Bot Detection (Defender Side)

  • Browser fingerprint anomalies: Headless Chrome signatures, missing plugins, WebDriver flag.
  • Behavioral patterns: Linear mouse paths, instant page transitions, no scrolling jitter.
  • Rate patterns: Request rate exceeding human baseline (>10 req/sec sustained).
  • TLS fingerprint: JA3/JA4 mismatches; curl/Python signatures vs browser.

SIEM Detection Rules

  • Cloudflare Bot Management: ML-based bot scoring.
  • Akamai Bot Manager: Behavioral fingerprinting.
  • PerimeterX / DataDome: Real-time bot detection.

Defense Evasion Techniques

Stealth Automation

  • puppeteer-extra-stealth: Removes WebDriver signature.
  • undetected-chromedriver: Patches ChromeDriver to bypass detection.
  • Real browser binaries: Use real Chrome/Firefox (not headless); slower but stealthier.
  • Camoufox: Firefox fork with built-in fingerprint randomization.
  • Realistic timing: Add jitter to mouse movements; random delays between actions.

Network Stealth

  • Residential proxies: Bright Data, Smartproxy; mimics real user IPs.
  • Mobile carrier proxies: 4G/5G IPs; harder to block (legitimate user pattern).
  • IP rotation: Rotate per session; avoid single-IP burst.
  • TLS fingerprint matching: curl-impersonate to match real browser JA3.

Behavioral Mimicry

  • Human-like navigation: Visit home page → category → product (don't deep-link directly).
  • Referrer chains: Use search engine referrer to look organic.
  • Mouse movement: Bezier curve mouse paths with jitter.

Integration

  • Feed scraped data to knowledge-ops for storage
  • Use deep-research to contextualize findings
  • Export to article-writing for reporting

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Data Scraper Agent」では何ができますか?

Automated data collection from structured sources: CVE databases, threat intelligence feeds, exploit databases, and security advisories. Transform unstructured web data into structured knowledge units.

TypingMindでData Scraper Agentを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Data Scraper Agentはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにData Scraper Agentをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/brucesongs/kali-claw/tree/main/skills/data-scraper-agentを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Data Scraper Agentを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Data Scraper Agentで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもData Scraper Agentを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Data Scraper Agent」は無料ですか?

はい。brucesongsがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇