We have RSSHub for RSS - now JSON hub for JSON.
JSON hub has simple and independent scripts to get (parse, scrap) information as JSON from web services you use (YouTube, Reddit, Steam, Marketplaces, etc).
Without dependencies, without shared functions, and I try to maintain them stupid but it works.
You can use it via DevTools (copy-paste to DevTools Console) or external tools (execute JS in playwright).
| Script | Description |
|---|---|
scripts/youtube-subscriptions.js |
exports your YouTube subscriptions as a JSON array |
nix develop
bun installThe Nix shell makes google-chrome-stable and playwright-cli share the same profile at .jsonhub/chrome-profile by default.
So the usual flow is:
# open chrome, log in, close it
google-chrome-stable https://youtube.com
# run playwright-cli to experiment or test with the same account
bunx playwright-cli open https://youtube.com/feed
bunx playwright-cli snapshot
bunx playwright-cli closeFixture files live in test/.
Naming:
test/<script-name>.contains.json
Behavior:
make test-via-playwright <script-name>loads the matching fixture- a fixture may be a single object or an array of objects
- matching is partial: each fixture object only needs to be contained inside one output object
