AI News Capture Pack
Bundle screenshots and assets per news story
AI News Capture Pack
Bundle screenshots, metadata, and assets for each news story into organized packages.
flowchart LR
A[Story URLs] --> B[AI News Capture Pack]
B --> C[Capture & Bundle]
C --> D[Asset Package]
style A fill:#e1f5fe
style D fill:#c8e6c9CLI Quickstart
praisonai recipe run ai-news-capture-pack \
--input '{"urls": ["https://example.com/article1"], "story_id": "story_001"}' \
--jsonUse in Your App (SDK)
import sys
sys.path.insert(0, 'agent_recipes/templates/ai-news-capture-pack')
from tools import capture_story_assets, create_bundle
# Capture assets for a story
assets = capture_story_assets(
urls=["https://example.com/article1", "https://example.com/article2"],
story_id="story_001"
)
# Create bundle
bundle = create_bundle(
story_id="story_001",
assets=assets["assets"],
include_metadata=True
)Input Schema
{
"type": "object",
"properties": {
"urls": {"type": "array"},
"story_id": {"type": "string"},
"include_metadata": {"type": "boolean", "default": true}
}
}Output Schema
{
"bundle_path": "/output/story_001.zip",
"assets": [
{"url": "...", "screenshot": "capture_0.png", "title": "..."}
],
"total_captured": 2
}Bundle Contents
| File | Description |
|---|---|
| capture_*.png | Screenshots |
| metadata.json | Story metadata |
| manifest.json | Bundle manifest |
Dependencies
pip install playwright
playwright install chromium