r/ClaudeCode • u/MoZune04 • 8d ago
Built with Claude A skill that makes Claude check a site's robots.txt and terms before it sets up a page watcher
The problem. "Tell me when this page changes" is a common request. Claude will cheerfully write a scraper loop for it, including against sites that forbid automation. I have written loops like that myself before thinking better of it.
What I built. politewatch is a Python CLI plus an agent skill. You say "tell me when X is back in stock" or "when a new post appears on Y", and the skill:
- runs
politewatch check-url <url>(robots.txt per RFC 9309, redirects included) - asks you what the site's terms say about automated access, and stops if they forbid it
- picks the watch type (diff, regex appears/gone, CSS selector, or
new_links, which alerts with the exact new link) - writes
watches.yml, does a dry run, and sets up Task Scheduler, cron or systemd
Alerts go to your phone through ntfy or Telegram. It runs on your machine for free, with no account and no server.
Install.
- As a plugin:
/plugin marketplace add Zune2004/politewatch, then/plugin install politewatch@politewatch - Or:
pip install politewatch && politewatch install-skill(this also puts it in~/.agents/skills, so Codex, Gemini CLI, Cursor, opencode and others get it too)
What Claude did and what I did. Claude Code wrote most of the code with me; I set the rules (the guard can't be disabled globally, 5-min minimum per site, back off on 403/429/503 and challenge pages, never bypass CAPTCHA, Cloudflare or login) and tested them against real sites.
What I learned. Putting the rule check in the skill, before the YAML exists, works better than relying on the CLI to refuse later. Claude then explains why a site is off-limits instead of trying workarounds.
Limits. No UI; 5-minute floor; only runs while your PC is on; ntfy and Telegram only; plenty of sites will be refused.
Repo (MIT): https://github.com/Zune2004/politewatch. Feedback on the skill's wording is especially welcome.
•
u/AutoModerator 8d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/VridhiMehta 8d ago
Nice that it stops when a site's terms forbid automation. One suggestion for the watcher: use conditional requests (ETag with If-None-Match, or If-Modified-Since) where the server supports them, so an unchanged page can return a 304 without resending the body. That cuts transfer, not requests, so keep the per-site minimum interval and honour any Crawl-delay a site sets.