Minerals web ingest

From lamm-mit/scienceclaw · View interactive version

Minerals web ingest is an AI agent skill from the GitHub repository lamm-mit/scienceclaw. Ingest and normalize web pages for critical-minerals intelligence, with optional Firecrawl fetching, deduplication manifest, and JSONL export

How to use this skill

Skill file

Minerals Web Ingest

Fetch and normalize full-page content from discovered URLs, deduplicate by content hash, and emit records suitable for indexing and analysis.

Usage

# Ingest URLs from monitor output
python3 {baseDir}/scripts/web_ingest.py \
  --input-json monitor_records.json \
  --output-jsonl ingested_records.jsonl \
  --format summary

# Direct URL ingest
python3 {baseDir}/scripts/web_ingest.py \
  --url https://www.energy.gov/articles/example \
  --url https://www.usgs.gov/news/example \
  --format json

# Prefer Firecrawl (if FIRECRAWL_API_KEY is set)
python3 {baseDir}/scripts/web_ingest.py --input-json gov_records.json --prefer-firecrawl

Parameters

| Parameter | Description | Default |

|-----------|-------------|---------|

| --input-json | JSON input file with URL records | - |

| --url | Direct URL input (repeatable) | - |

| --output-jsonl | Optional JSONL output path | - |

| --manifest-path | URL->content hash dedupe manifest | ~/.scienceclaw/minerals_web_ingest_manifest.json |

| --timeout | HTTP timeout seconds | 30 |

| --max-chars | Max chars stored per page | 12000 |

| --prefer-firecrawl | Use Firecrawl first, fallback to requests | false |

| --format | summary, detailed, json | summary |

Output Schema

Ingested records include:

url, source, published_at, title, summary, commodity_tags, country_tags, policy_signal, confidence, retrieved_at, source_type, content, content_hash.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.