AgResource Newsletter Scraper
Use this skill to scrape, summarize, and analyze AgResource grain marketing newsletters.
by brianppetty · published 2026-03-22
$ claw add gh:brianppetty/brianppetty-agresource# AgResource Newsletter Scraper
Use this skill to scrape, summarize, and analyze AgResource grain marketing newsletters.
Implementation
Capabilities
Commands
Manual Trigger
"Check AgResource newsletter"
"Summarize today's grain report"
"Show full newsletter" (detailed view)**To run scraper manually:**
cd /home/brianppetty/clawd/skills/agresource
# Morning newsletter (default)
node scraper.js
node scraper.js --type=morning
# Noon/midday newsletter
node scraper.js --type=noon
# Evening newsletter
node scraper.js --type=evening
# Saturday newsletter
node scraper.js --type=saturday
# Sunday newsletter
node scraper.js --type=sundayCron Job Triggers
When a cron event fires, match the time/type to the correct `--type` parameter:
| Cron Message | Type to Use | Time |
|--------------|-------------|------|
| "Check AgResource newsletter (morning)" | `--type=morning` | 8:30 AM ET (Mon-Fri) |
| "Check AgResource newsletter (afternoon)" | `--type=noon` | 1:30 PM ET (Mon-Fri) |
| "Check AgResource newsletter (evening - positioning)" | `--type=evening` | 7:00 PM ET (Mon-Sat) |
| "Check AgResource newsletter (weekend)" | `--type=saturday` or `--type=sunday` | ~3:00 PM ET (Sat/Sun) |
**For weekend jobs**, determine which day it is and use:
Sentiment Queries
"What's the current market sentiment?"
"Show sentiment trends"
"What's the sentiment history?"Sentiment Dimensions (PRICE-IMPACT FOCUSED)
**CRITICAL:** Sentiment analysis tracks PRICE IMPACT, not general "good/bad" news.
**Key inverse relationships to remember:**
Track these dimensions across newsletters:
- BULLISH = Prices expected to go UP
- BEARISH = Prices expected to go DOWN
- Tracks weather impact on PRODUCTION (inverted for price impact)
- Positive weather for crops = BEARISH for prices (more supply)
- Negative weather for crops = BULLISH for prices (less supply)
- Optimistic = more supply = BEARISH for prices
- Cautious = supply concerns = BULLISH for prices
Sales Advice Detection
**Status phrases to detect:**
**Keywords for sales advice:**
Telegram Alert Format
Brief summary sent for every newsletter:
🌾 AgResource - 2026-01-08 8:30 AM
Summary: No sales recommended
Sentiment: Bullish (↗️ improving)
Full details in ~/clawd/memory/agresource/Output Format
Daily Summary File (`YYYY-MM-DD.md`)
# AgResource Newsletter - 2026-01-08 8:30 AM
## Quick Summary
[2-3 sentence overview]
## Key Newsworthy Items
- [Grain production relevant news]
- [Weather tidbits]
## Sales Advice Status
- Corn: [New sales advice / No change / No sales recommended]
- Soybeans: [New sales advice / No change / No sales recommended]
## Current Positions (from end of newsletter)
- [Summary of current positioning]
## Sentiment & Trends
- **Market Mood:** Bullish / Bearish / Neutral
- **Previous Mood:** [from last newsletter]
- **Trend:** Improving / Declining / Stable
- **Weather Impact:** Positive / Negative / Mixed
- **Production Outlook:** Optimistic / Cautious / Uncertain
## Full Content
[Optional: full newsletter content for reference]Sentiment History File (`sentiment_history.json`)
{
"last_updated": "2026-01-08T08:30:00",
"sentiment_history": [
{
"date": "2026-01-08",
"time": "08:30 AM",
"market_mood": "bullish",
"weather_impact": "positive",
"production_outlook": "optimistic",
"trend_direction": "improving",
"confidence": "high",
"key_phrases": ["prices advancing", "favorable weather"],
"sales_advice": "No sales recommended"
}
]
}Configuration
**Credentials:** Loaded from environment variables
**Dependencies:**
**Schedule:** 4x daily (cron jobs)
**History window:** Keep last 15-20 newsletters for sentiment tracking
Notes
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...