Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/s3yed/appie-kit/web-scraping-javascript-sitesnpx skills add S3YED/appie-kit --skill web-scraping-javascript-sitesgit clone --depth 1 https://github.com/S3YED/appie-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/s3yed/appie-kit/web-scraping-javascript-sites)<a href="https://agentmods.dev/skills/s3yed/appie-kit/web-scraping-javascript-sites"><img src="https://agentmods.dev/badge/skills/s3yed/appie-kit/web-scraping-javascript-sites.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00036 | $0.02207 |
| Opus 5 | $0.00018 | $0.01104 |
| Sonnet 5 | $0.00007 | $0.00441 |
| Haiku 4.5 | $0.00004 | $0.00221 |
Grade A, and why
web-scraping-javascript-sites scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
> **For SPA/TypeScript sites: try `urllib` FIRST before launching a browser.** How it starts
The opening of the file, as written. The whole thing — 291 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Web Scraping JavaScript/SPA Sites
The Core Insight
For SPA/TypeScript sites: try
urllibFIRST before launching a browser.
TypeScript sites (Next.js, Nuxt, React, Vue) send full HTML on first request — the content is there. Browser tools show empty snapshots because they capture before JS finishes rendering. A raw HTTP fetch often gets all the data you need.
Decision Tree
Is the site an SPA (React/Next/Nuxt/Vue)?
│
├── YES → Try urllib/requests FIRST
│ └─ Got content? → DONE
│ └─ Content empty? → Use Playwright
│
└── NO (static HTML) → Use urllib/requests directly
Layer 1: Raw HTML Fetch (Fastest)
import urllib.request
import re
url = "https://example.com"
req = urllib.request.Request(url, headers={
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36'
})
response = urllib.request.urlopen(req, timeout=10)
html = response.read().decode('utf-8')
# Extract content
# Option A: regex search
prices = re.findall(r'€[\d,]+', html)
# Option B: find section context
section = re.search(r'id="pricing".{0,5000}', html, re.DOTALL | re.IGNORECASE)
if section:
content = re.sub(r'<[^>]+>', ' ', section.group())
content = re.sub(r'\s+', ' ', content).strip()
# Option C: parse HTML properly
from html.parser import HTMLParser
class ContentParser(HTMLParser):
def __init__(self):
super().__init__()
self.in_target = False
self.text = []
def handle_starttag(self, tag, attrs):
if tag in ('h1','h2','h3','p', 'li'):
self.in_target = True
def handle_data(self, data):
if self.in_target:
self.text.append(data.strip())
def handle_endtag(self, tag):
if tag in ('h1','h2','h3','p', 'li'):
self.in_target = False
Why urllib Often Works for "Lazy" Sites
Many TypeScript/React sites pre-render HTML on the server (SSR) or send full content in initial HTML, but use JS to make it look animated/lazy. The data is in the first response — you just need to parse it.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 291 lines · 36 tokens per session scan A fd39a135e588
web-scraping-javascript-sites is a skill published in the GitHub repository S3YED/appie-kit (7 stars, last pushed 8d ago), licensed MIT. It adds 36 tokens to every session and 2,207 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
internal-linking-optimizer
Use when improving internal link structure, anchor text, orphan pages, crawl depth, site architecture, or link equity flow. 内链优化/站内架构.
use-agent-browser-for-airi
Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts. Use when uploading and verifying contributor-supplied Live2D ZIP, VRM, or MMD ZIP/PMX/PMD files through AIRI's model selector, including onboarding bypass, format-specific import…
browser-execution
Complete a direct browser task, including recovery from blocked sites and an explicit task result.
browser-to-api
Turn a website's observable HTTP traffic into a best-effort OpenAPI 3.1 spec by analyzing a browser-trace capture. Use when the user wants to discover/extract API endpoints from a browser session, build an OpenAPI doc from network traffic, or document a third-party site's XHR/fetch surface for client integration.
playwright-cli
Automates browser interactions for testing and validating your own web applications using playwright-cli. Use when you need terminal-first browser control for navigation, form filling, screenshots, tracing, bound browser sessions, debugging, or generating Playwright test code. Only use against applications you own or…
capture
Captures HTTP traffic from a web app using playwright-cli — site fingerprinting (framework, protections, auth, API discovery) plus full traffic recording into raw-traffic.json. Use as Phase 1 of CLI generation whenever a target URL needs its API surface recorded or assessed.