Logo: Web Fetch Advanced

Web Fetch Advanced

Communautéit
mrhlaingbwardev
web-fetch-advanced

Use when webfetch fails, need to bypass bot detection, scrape JS sites, download files, or use custom headers/proxies. Multi-method web content fetching with fallback.

Iwwersiicht

Editeurmrhlaingbwardev
Repositoryagentic-hacking-skills
Skill-Nummweb-fetch-advanced
Stären
350
Forks
57
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    mrhlaingbwardev huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Web Fetch Advanced an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/main/skills/web-fetch-advanced
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mrhlaingbwardev/agentic-hacking-skills.git /tmp/agentic-hacking-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-hacking-skills/skills/web-fetch-advanced .claude/skills/web-fetch-advanced
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Web Fetch Advanced an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Web Fetch Advanced automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Web Fetch Advanced net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Advanced Web Content Fetching

PURPOSE: Multi-method web content retrieval with automatic fallback when primary methods fail.

When to Use This Skill

Use when:

  • webfetch tool fails (rate limits, bot detection)
  • Need to bypass simple anti-bot protection
  • Scraping sites with JavaScript
  • Downloading files
  • API calls with custom headers
  • Need stealth/anonymity

Fetching Method Arsenal

Method 1: MCP WebFetch (Default)

Pros:

  • ✅ Built-in tool
  • ✅ Simple to use
  • ✅ Format conversion (markdown, text, html)

Cons:

  • ❌ Rate limited by some sites
  • ❌ No JavaScript execution
  • ❌ Detected as bot by some sites

Usage:

Use webfetch tool directly

Best For:

  • Documentation sites
  • APIs
  • Static content
  • Government sites

Method 2: PowerShell Invoke-WebRequest

Pros:

  • ✅ Always available (Windows)
  • ✅ Custom headers support
  • ✅ Cookie handling
  • ✅ Authentication support
  • ✅ File downloads

Cons:

  • ❌ Slower than curl
  • ❌ Windows only

Implementation:

powershell
# Basic GET request
$response = Invoke-WebRequest -Uri "https://example.com" -UseBasicParsing
$content = $response.Content

# With custom headers (bypass basic bot detection)
$headers = @{
    'User-Agent' = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
    'Accept' = 'text/html,application/json'
    'Accept-Language' = 'en-US,en;q=0.9'
    'Referer' = 'https://google.com'
}
$response = Invoke-WebRequest -Uri "https://target.com" -Headers $headers -UseBasicParsing

# With timeout
$response = Invoke-WebRequest -Uri "https://target.com" -TimeoutSec 30 -UseBasicParsing

# Download file
Invoke-WebRequest -Uri "https://example.com/file.pdf" -OutFile "output.pdf"

# POST request with JSON
$body = @{
    key1 = "value1"
    key2 = "value2"
} | ConvertTo-Json

$response = Invoke-WebRequest -Uri "https://api.example.com/endpoint" `
    -Method POST `
    -Body $body `
    -ContentType "application/json" `
    -Headers $headers

Best For:

  • API calls
  • File downloads
  • Sites requiring specific headers
  • Windows-native tasks

Method 3: .NET WebClient (Fast & Lightweight)

Pros:

  • ✅ Very fast
  • ✅ Low memory usage
  • ✅ Custom headers
  • ✅ Progress tracking for downloads

Cons:

  • ❌ Less features than Invoke-WebRequest
  • ❌ Requires manual disposal

Implementation:

powershell
# Simple GET
$client = New-Object System.Net.WebClient
$client.Headers.Add("User-Agent", "Mozilla/5.0")
$content = $client.DownloadString("https://example.com")
$client.Dispose()

# Download file with progress
$client = New-Object System.Net.WebClient
$client.Headers.Add("User-Agent", "Mozilla/5.0")
Register-ObjectEvent -InputObject $client -EventName DownloadProgressChanged -SourceIdentifier WebClient.DownloadProgressChanged -Action {
    Write-Progress -Activity "Downloading" -Status "$($EventArgs.ProgressPercentage)% complete" -PercentComplete $EventArgs.ProgressPercentage
}
$client.DownloadFileAsync("https://example.com/largefile.zip", "output.zip")
# Wait for download
while ($client.IsBusy) { Start-Sleep -Milliseconds 100 }
$client.Dispose()
Unregister-Event -SourceIdentifier WebClient.DownloadProgressChanged

# POST request
$client = New-Object System.Net.WebClient
$client.Headers.Add("Content-Type", "application/json")
$client.Headers.Add("User-Agent", "Mozilla/5.0")
$response = $client.UploadString("https://api.example.com/endpoint", "POST", '{"key":"value"}')
$client.Dispose()

Best For:

  • Large file downloads
  • Quick API calls
  • Low-resource environments

Method 4: WSL curl (Most Powerful)

Pros:

  • ✅ Full curl feature set
  • ✅ Best header customization
  • ✅ Proxy support
  • ✅ SSL/TLS options
  • ✅ HTTP/2, HTTP/3 support
  • ✅ Rate limiting control

Cons:

  • ❌ Requires WSL
  • ❌ Slightly more complex

Implementation:

bash
# Basic GET
wsl -d kali-linux -- curl -s https://example.com

# With custom User-Agent
wsl -d kali-linux -- curl -s -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" https://example.com

# Follow redirects
wsl -d kali-linux -- curl -s -L https://example.com

# With headers
wsl -d kali-linux -- curl -s -H "Accept: application/json" -H "Authorization: Bearer TOKEN" https://api.example.com

# POST request with JSON
wsl -d kali-linux -- curl -s -X POST -H "Content-Type: application/json" -d '{"key":"value"}' https://api.example.com

# Download file
wsl -d kali-linux -- curl -s -L -o output.pdf https://example.com/file.pdf

# With timeout
wsl -d kali-linux -- curl -s --max-time 30 https://example.com

# Through proxy
wsl -d kali-linux -- curl -s -x http://proxy:8080 https://example.com

# With cookies
wsl -d kali-linux -- curl -s -b "session=abc123" https://example.com

# Ignore SSL errors (for testing only!)
wsl -d kali-linux -- curl -s -k https://self-signed.example.com

# Rate limiting (1 request per 2 seconds)
wsl -d kali-linux -- curl -s --limit-rate 50k https://example.com

Best For:

  • API testing
  • Bypassing bot detection (with custom headers)
  • Proxy usage
  • SSL/TLS testing
  • Maximum control

Method 5: Playwright Browser (JavaScript Support)

Pros:

  • ✅ Full browser rendering
  • ✅ JavaScript execution
  • ✅ Bypasses most bot detection
  • ✅ Can interact with page elements
  • ✅ Screenshots

Cons:

  • ❌ Slow (full browser)
  • ❌ Resource intensive
  • ❌ Complex for simple tasks

Implementation:

Use playwright_browser_navigate tool
Use playwright_browser_snapshot for content
Use playwright_browser_take_screenshot for visual

Best For:

  • JavaScript-heavy sites (SPAs)
  • Sites with bot detection
  • Interactive content
  • When you need to click/fill forms

Method 6: Python requests (via WSL)

Pros:

  • ✅ Excellent library ecosystem
  • ✅ Session management
  • ✅ Beautiful Soup integration
  • ✅ Retry logic

Implementation:

bash
# Simple GET
wsl -d kali-linux -- python3 -c "import requests; print(requests.get('https://example.com').text)"

# With headers
wsl -d kali-linux -- python3 -c "
import requests
headers = {'User-Agent': 'Mozilla/5.0'}
r = requests.get('https://example.com', headers=headers)
print(r.text)
"

# Session with cookies
wsl -d kali-linux -- python3 << 'EOF'
import requests
s = requests.Session()
s.get('https://example.com/login')  # Get cookies
r = s.get('https://example.com/protected')  # Use cookies
print(r.text)
EOF

Best For:

  • Complex scraping
  • Session management
  • HTML parsing

Automatic Fallback Strategy

Smart Fetch Workflow

markdown
ATTEMPT 1: webfetch (fastest)
    ↓ If fails (429, timeout, error)
    
ATTEMPT 2: WSL curl with headers (stealth)
    ↓ If fails (no WSL, blocked)
    
ATTEMPT 3: PowerShell Invoke-WebRequest (custom headers)
    ↓ If fails (still blocked)
    
ATTEMPT 4: Playwright (full browser)
    ↓ If fails (JavaScript errors)
    
FALLBACK: Report failure with details

Implementation Example

Scenario: User asks to fetch https://target.com

powershell
# Try Method 1: webfetch
Try webfetch tool first (fastest)

# If 429 or timeout:
Try WSL curl with stealth headers:
wsl -d kali-linux -- curl -s -L \
  -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \
  -H "Accept: text/html,application/xhtml+xml" \
  -H "Accept-Language: en-US,en;q=0.9" \
  -H "Referer: https://google.com" \
  https://target.com

# If still fails:
Try PowerShell with full headers:
$headers = @{
    'User-Agent' = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'
    'Accept' = 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
    'Accept-Language' = 'en-US,en;q=0.9'
    'Accept-Encoding' = 'gzip, deflate, br'
    'Referer' = 'https://www.google.com/'
    'DNT' = '1'
}
Invoke-WebRequest -Uri "https://target.com" -Headers $headers -UseBasicParsing

# If JavaScript required:
Use playwright_browser_navigate → playwright_browser_snapshot

Stealth Techniques

Bypass Basic Bot Detection

1. Realistic User-Agent:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

2. Full Header Set:

powershell
$headers = @{
    'User-Agent' = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
    'Accept' = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
    'Accept-Language' = 'en-US,en;q=0.9'
    'Accept-Encoding' = 'gzip, deflate, br'
    'DNT' = '1'
    'Connection' = 'keep-alive'
    'Upgrade-Insecure-Requests' = '1'
    'Sec-Fetch-Dest' = 'document'
    'Sec-Fetch-Mode' = 'navigate'
    'Sec-Fetch-Site' = 'none'
    'Cache-Control' = 'max-age=0'
}

3. Random Delays:

powershell
# Between requests
Start-Sleep -Milliseconds (Get-Random -Minimum 1000 -Maximum 3000)

4. Referer Spoofing:

powershell
$headers['Referer'] = 'https://www.google.com/search?q=target+site'

Special Use Cases

Case 1: Download Large Files

Best Method: .NET WebClient with progress

powershell
$url = "https://example.com/largefile.zip"
$output = "C:\Downloads\file.zip"

$client = New-Object System.Net.WebClient
Register-ObjectEvent -InputObject $client -EventName DownloadProgressChanged -SourceIdentifier Download -Action {
    $percent = $EventArgs.ProgressPercentage
    Write-Host "`rProgress: $percent%" -NoNewline
}

$client.DownloadFile($url, $output)
$client.Dispose()
Unregister-Event -SourceIdentifier Download
Write-Host "`nDownload complete!"

Case 2: Scrape API with Pagination

Best Method: WSL curl in loop

bash
for page in {1..10}; do
  wsl -d kali-linux -- curl -s \
    -H "Authorization: Bearer TOKEN" \
    "https://api.example.com/items?page=$page" >> data.json
  sleep 2  # Rate limiting
done

Case 3: Bypass Cloudflare Basic Protection

Best Method: Playwright browser

1. playwright_browser_navigate to target
2. playwright_browser_wait_for (wait for challenge)
3. playwright_browser_snapshot (get content after JS loads)

Case 4: Get Data Behind Login

Best Method: Python requests with session

python
import requests

s = requests.Session()

# Login
login_data = {'username': 'user', 'password': 'pass'}
s.post('https://example.com/login', data=login_data)

# Now authenticated
r = s.get('https://example.com/protected/data')
print(r.text)

Performance Comparison

MethodSpeedStealthJS SupportResource Usage
webfetch⚡⚡⚡ Fast🥷 Low❌ No💻 Low
WSL curl⚡⚡⚡ Fast🥷🥷 Medium❌ No💻 Low
PowerShell⚡⚡ Medium🥷 Low❌ No💻 Medium
.NET WebClient⚡⚡⚡ Fast🥷 Low❌ No💻 Very Low
Python requests⚡⚡ Medium🥷🥷 Medium❌ No💻 Medium
Playwright⚡ Slow🥷🥷🥷 High✅ Yes💻💻💻 High

Troubleshooting

Error: 429 Too Many Requests

Solution:

  1. Add delays between requests
  2. Use different User-Agent
  3. Try through proxy
  4. Use Playwright (appears as real browser)

Error: SSL Certificate Error

Solution:

bash
# curl: Ignore SSL (testing only!)
wsl -d kali-linux -- curl -k https://target.com

# PowerShell: Ignore SSL (testing only!)
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
Invoke-WebRequest -Uri https://target.com

Error: Timeout

Solution:

powershell
# Increase timeout
Invoke-WebRequest -Uri https://slow-site.com -TimeoutSec 60

# Or curl
wsl -d kali-linux -- curl --max-time 60 https://slow-site.com

Error: Blocked by Cloudflare/Bot Detection

Solution:

  1. Use Playwright (full browser)
  2. Add realistic headers
  3. Use proxy/VPN
  4. Add cookies from real browser session

Summary

Quick Decision Tree:

Need JavaScript? → Playwright
Need speed? → WSL curl or WebClient
Need stealth? → Playwright or curl with headers
Need file download? → WebClient with progress
Need API call? → WSL curl or PowerShell
Site blocking you? → Try fallback chain

Always Available Methods:

  1. ✅ webfetch (MCP tool)
  2. ✅ PowerShell Invoke-WebRequest
  3. ✅ .NET WebClient
  4. ✅ WSL curl (if WSL installed)
  5. ✅ Playwright (if MCP enabled)

Never rely on single method - always have fallbacks! 🎯

Heefeg gestallte Froen

Wat mécht de KI-Skill Web Fetch Advanced?

Use when webfetch fails, need to bypass bot detection, scrape JS sites, download files, or use custom headers/proxies. Multi-method web content fetching with fallback.

Firwat Web Fetch Advanced op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Web Fetch Advanced besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Web Fetch Advanced an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/main/skills/web-fetch-advanced an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Web Fetch Advanced benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Web Fetch Advanced benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Web Fetch Advanced domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Web Fetch Advanced gratis?

mrhlaingbwardev huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇