/newsletter-events:newsletter-events-researchfrom newsletter-events
Scrapes event data from Instagram, Facebook, and web aggregators using CLI tools. Downloads flyer images for vision analysis. Outputs structured data to SQLite.
Ships in newsletter-events. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
<essential_principles>
This skill gathers raw event data from configured sources. It does NOT write newsletter content - use newsletter-events-write for that.
https://facebook.com/events/123456)Research produces structured data saved to ~/.config/local-media-tools/data/:
data/raw/instagram_<handle>.json - Raw API responsesdata/images/instagram/<handle>/ - Downloaded flyer imagesdata/events.db - SQLite database with profiles, posts, events, venuesImages are critical. Many venues post event details only in flyer images, not captions. Always analyze downloaded images with Claude's vision.
Image Download Requirement: Instagram CDN URLs return 403 when accessed via WebFetch. Images MUST be downloaded using Python's requests library with proper User-Agent headers, then analyzed locally using the Read tool.
</essential_principles>
NEVER use curl or raw API calls. Always use the CLI tools provided:
Instagram:
# Scrape all configured accounts
uv run python scripts/cli_instagram.py scrape --all
# Scrape specific account
uv run python scripts/cli_instagram.py scrape --handle wayside_cider
# List posts from database
uv run python scripts/cli_instagram.py list-posts --handle wayside_cider
# Show database statistics
uv run python scripts/cli_instagram.py show-stats
# Classify posts (single or batch)
uv run python scripts/cli_instagram.py classify --post-id 123 --classification event --reason "Has future date"
uv run python scripts/cli_instagram.py classify --batch-json '[{"post_id": "123", "classification": "event", "reason": "..."}]'
The CLI tools ensure:
handle, not username)~/.config/local-media-tools/data/raw/Do NOT:
curl to call ScrapeCreators API directlyYou can also paste Facebook event URLs directly:
https://facebook.com/events/123456https://facebook.com/events/789012Wait for response before proceeding.
| Response | Workflow | |----------|----------| | 1, "instagram", "ig" | `workflows/research-instagram.md` | | 2, "web", "aggregator", "websites" | `workflows/research-web-aggregator.md` | | 3, "all", "both", "full" | `workflows/research-all.md` | | 4, "facebook", contains `facebook.com/events/` | `workflows/research-facebook.md` |<reference_index>
All domain knowledge in references/:
APIs: scrapecreators-api.md, facebook-scraper-api.md, firecrawl-api.md Detection: event-detection.md </reference_index>
<workflows_index>
| Workflow | Purpose |
|---|---|
| research-instagram.md | Scrape Instagram, download images, extract events |
| research-facebook.md | Scrape individual Facebook event URLs |
| research-web-aggregator.md | Dispatcher for web scraping (calls scrape + extract) |
| research-web-scrape.md | Phase 1: Scrape pages, return JSON |
| research-web-extract.md | Phase 2: Extract events from JSON, save via CLI |
| research-all.md | Run all research workflows |
| </workflows_index> |
<success_criteria> Research is complete when:
~/.config/local-media-tools/data/raw/newsletter-events-write skill
</success_criteria>references/event-detection.md (opens in a new tab)references/facebook-scraper-api.md (opens in a new tab)references/firecrawl-api.md (opens in a new tab)references/scrapecreators-api.md (opens in a new tab)workflows/research-all.md (opens in a new tab)workflows/research-facebook.md (opens in a new tab)workflows/research-instagram.md (opens in a new tab)workflows/research-web-aggregator.md (opens in a new tab)workflows/research-web-extract.md (opens in a new tab)workflows/research-web-scrape.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/newsletter-events-add-sourceAdd Instagram accounts or web aggregators to sources.yaml configuration/newsletter-events-list-sourcesList all configured event sources (Instagram, web aggregators)/newsletter-events-remove-sourceRemove Instagram accounts or web aggregators from sources.yaml configuration/newsletter-events-setupSet up environment for local newsletter events plugin. Use when first installing, updating dependencies, or verifying configuration./newsletter-events-update-eventManually refresh specific event pages to update event data/newsletter-events-writeGenerate markdown newsletters from stored events. Use when the user wants to create, write, or generate a newsletter from scraped events.npx claudepluginhub aniketpanjwani/local_media_tools --plugin newsletter-eventsOther plugins' skills for the same job