OpenParable
Skip to content
← Back to skills

Web Browsing Routing And Sites

Research
web-browsing-routing-and-sites

Web Browsing Routing And Sites is an Agent Skill for research published in the Lingtai-AI/lingtai repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Nested web-browsing reference for auto-tier decisions, per-site tier recommendations, known limitations/gotchas, and real-time data endpoints.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Lingtai-AI/lingtai/blob/HEAD/tui/internal/preset/skills/web-browsing/reference/routing-and-sites/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/web-browsing-routing-and-sites, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Web Browsing Routing and Site Reference

Nested web-browsing reference. Open this when the auto-tier extractor misroutes a site, when you know the site class, or when you need real-time data endpoints.

Auto-Tier Decision Tree

The bundled extract_page.py script auto-selects the cheapest viable tier.完整逻辑见 scripts/extract_page.py 的 auto_tier() 函数。

分层规则概要:

URL 特征分配 Tier
PDF (.pdf 后缀 或 /pdf/ 路径)Tier 0
学术 API (arXiv, CrossRef, DOI, PubMed, etc.)Tier 1
静态内容站 (Wikipedia, BBC, Stack Overflow, etc.)Tier 1.5
需结构化提取 (GitHub, Reddit, Nature)Tier 2
需 JS 渲染/反爬 (Scholar, Springer, Medium, Reuters)Tier 3
其他 → 默认 Tier 1.5 (trafilatura)Tier 1.5

Per-Site Tier Recommendations

SiteRecommended tierSuccess rateNotes
arXiv abstractTier 1highAPI call via requests
arXiv PDFTier 0highcurl -L + fitz
OpenAlex / CrossRefTier 1highFully free, most reliable
UnpaywallTier 1highFinds OA PDF for any DOI
DBLPTier 1highCS papers, conference proceedings
CORETier 1highOA full text (30M+ papers)
Europe PMCTier 1highBiomedical + PMC full text
Papers With CodeTier 1highML papers with code
Google Scholar listTier 2medium-highcurl + BS, needs clean IP
Nature.comTier 2/3mediumog meta cheap; full body needs JS
Springer paywalledTier 3lowNeeds cookies/session
Medium / SubstackTier 1.5hightrafilatura extracts clean text
RedditTier 2high.json API or old.reddit.com + BS
GitHubTier 2highAPI or BS
WikipediaTier 1highREST API /page/summary/{title}
Hacker NewsTier 1highFirebase API, fully free
Google NewsTier 2highRSS feed, free, no key
Twitter/XTier 3lowAggressive bot detection
LinkedInTier 3lowRequires login + stealth
Any generic articleTier 1.5hightrafilatura — your default

Known Limitations & Gotchas

Read this before fighting a site — most of these are paired with the per-site table above.

  1. Major publishers (Wiley / Science / PNAS / Elsevier): almost always return 403; APIs are the only practical route. Use Unpaywall to find OA versions.
  2. Nature.com: do NOT use networkidle with Playwright — it will time out. Use domcontentloaded.
  3. Google Scholar: rapid requests get IP-blocked; pace with time.sleep(2). Better: use SerpAPI/Serper.
  4. Semantic Scholar API: needs free API key for usable rate limits (otherwise 100 req/5min).
  5. PDF links on arXiv: the abstract page does NOT contain a direct PDF link. Derive: /pdf/{ID}.pdf.
  6. Jina Reader: 20 req/min free tier. For heavy use, get an API key.
  7. Reddit: must include a descriptive User-Agent header. Rate limit: ~60 req/min.
  8. Medium paywall: trafilatura often extracts full text even from paywalled articles. If not, try Jina Reader.
  9. DuckDuckGo search: no API key needed but rate-limited. Use responsibly.
  10. CORE API: requires free API key from https://core.ac.uk/services/api for reasonable limits.

Real-Time Data Quick Reference

SourceMethodFree?Endpoint / Pattern
Google NewsRSS✅https://news.google.com/rss/search?q={query}
RedditJSON API✅Append .json to any URL + User-Agent header
Hacker NewsFirebase API✅https://hacker-news.firebaseio.com/v0/topstories.json
GitHubREST API✅*https://api.github.com/search/repositories?q={q}&sort=stars
Stack ExchangeAPI✅https://api.stackexchange.com/2.3/search?intitle={q}&site=stackoverflow
WikipediaREST API✅https://en.wikipedia.org/api/rest_v1/page/summary/{title}
Wayback MachineAPI✅https://archive.org/wayback/available?url={url}
Stock datayfinance✅yf.Ticker("AAPL").history(period="1mo")
WeatherOpen-Meteo✅https://api.open-meteo.com/v1/forecast?...

→ Deep-dive: reference/realtime-data.md → News/RSS guide: reference/news-and-rss.md → Social media: reference/social-media.md