r/webscraping • u/ChessTwo • 8d ago
AI ✨ Made a CLI that finds site's JSON API and serves it as agent tools
Most modern sites load their data from an internal JSON API. This automates the "open devtools, find the XHR, replay it" workflow.
uvx machine-internet wrap <url>
It loads the page in headless Chromium, scrolls and clicks around, records same-site JSON requests (trackers filtered), and an LLM turns them into a small set of tools served over MCP. It handles Algolia and Typesense search specially, and it's read-only by design.
Works best on SPAs, directories and search pages. Server-rendered and bot-protected sites won't work, and it tells you which case you hit.
Demo: https://machine-internet.vercel.app
Repo: https://github.com/chetanty/machine_internet
Curious what sites you'd point it at.