jina-web-fetch
Fetch webpage text with a normal HTTP request first, then automatically fall back to jina.ai proxy when direct access fails or returns login/JS-blocked content. Use when extracting content from X (Twitter) or other pages that are hard to read directly.
How do I install this agent skill?
npx skills add https://github.com/xiaojiongqian/skills-hub --skill jina-web-fetchIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill fetches webpage content using curl and provides an automated fallback to the jina.ai scraper service when direct access is blocked. It presents a surface for indirect prompt injection due to the ingestion of untrusted web content.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 1 issue
- Runlayerwarn
2/3 files flagged
What does this agent skill do?
Jina Web Fetch
Use this skill to capture content from hard-to-fetch pages while keeping a deterministic workflow:
- Try direct fetch first.
- If direct fetch fails or looks blocked, retry via
jina.ai.
Quick Start
bash "<path-to-skill>/scripts/fetch_with_jina_fallback.sh" "<url>" "<output_file>"
Example:
bash "<path-to-skill>/scripts/fetch_with_jina_fallback.sh" \
"https://x.com/trq212/status/2027463795355095314" \
"raw/x-status.txt"
The script prints source=direct or source=jina to stderr so you can see which path was used.
If output_file is omitted, content is printed to stdout.
Default Workflow
- Run the script with the target URL.
- Save raw output under a traceable path like
raw/<slug>.txt. - Parse extracted text/markdown for:
- main body
- media links (images/videos)
- referenced URLs
- Keep original URL + raw capture together for auditability.
Blocking Heuristics
The script auto-falls back to jina.ai when direct content looks like:
- login wall / sign-up prompt
- JS-required page
- anti-bot / captcha / access denied page
- very small shell-like HTML page (default threshold
< 800bytes)
Environment Knobs
FETCH_TIMEOUT(default25)FETCH_CONNECT_TIMEOUT(default10)FETCH_MIN_BYTES(default800)JINA_FORCE=1to skip direct fetch and always usejina.ai
URL Format Note
Fallback URL is built as:
https://r.jina.ai/http://<original-host-and-path>
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/xiaojiongqian/skills-hub/jina-web-fetch">View jina-web-fetch on skillZs</a>