Skip to content

Zero Hassle Web Scrapeability Checker - Verify page reachability, capture screenshots, and detect anti-scraping measures before deploying scrapers

License

Notifications You must be signed in to change notification settings

nolindnaidoo/scrape-le

Repository files navigation

Scrape-LE Logo

Scrape-LE: Zero Hassle Web Scrapeability Checker

Verify page reachability, capture screenshots, and detect anti-scraping measures before deploying scrapers
Real Browser • Screenshots • Console Errors • Anti-Bot Detection

VSCode Marketplace Version Build Status MIT License

Tested on Ubuntu, macOS, and Windows for maximum compatibility.


Scrapeability Check Demo Command Palette

💡 First time? Run "Scrape-LE: Setup Browser" from Command Palette to install Chromium (~130MB one-time setup)

🙏 Thank You

If Scrape-LE saves you time, a quick rating helps other developers discover it:
VS Code MarketplaceOpen VSX

✅ Why Scrape-LE?

Validate scraper targets before debugging your code. Check if sites are reachable, detect auth walls, and verify selectors — all from your editor.

Scrape-LE uses real browser automation (Playwright) to catch issues early: JavaScript rendering errors, authentication requirements, CAPTCHA detection, and selector validation. Stop wasting time debugging code when the problem is the target site.

  • Pre-deployment validation
    Test target URLs before writing scraper code. Catch unreachable sites, JS errors, and rendering issues early.

  • Visual confirmation
    Full-page screenshots provide instant visual proof that pages render correctly.

  • Advanced detection suite
    Identify anti-bot systems (Cloudflare, reCAPTCHA, hCaptcha), rate limits, robots.txt policies, and authentication walls before they break your scrapers.

  • Console error detection
    Identify JavaScript errors that might break scrapers dependent on dynamic content.

  • Fast feedback loop
    Get results in seconds, not minutes. Status bar integration shows check progress without blocking your workflow.

  • One-click setup
    Automatic Chromium installation means you're ready to check URLs in minutes, not hours.

🚀 More from the LE Family

💡 Use Cases

  • Pre-Scraper Validation - Check if sites are reachable before writing scraper code
  • Anti-Bot Detection - Identify Cloudflare, reCAPTCHA, hCaptcha before deployment
  • Rate Limit Discovery - Find rate limits before hitting them in production
  • robots.txt Compliance - Verify crawling is allowed by site policies
  • Auth Wall Detection - Check if login or paywalls block access Disallow: /admin/, /api/internal/ Crawl-delay: 10 seconds Sitemap: https://example.com/sitemap.xml

## 🚀 Quick Start

1. **Install from VS Code Marketplace**
   - VS Code Marketplace: [Install here](https://marketplace.visualstudio.com/items?itemName=nolindnaidoo.scrape-le)
2. Open Command Palette (`Cmd/Ctrl + Shift + P`).
3. Run **"Scrape-LE: Check URL"** or press `Cmd+Alt+S` / `Ctrl+Alt+S`.
4. Enter URL and view detailed results.

**Need test URLs?** Check out [`sample/README.md`](sample/README.md) for 10 categorized test cases including static sites, SPAs, APIs, protected sites, and more.

### First-Time Setup

On first use, Scrape-LE automatically detects if Chromium is installed and prompts you to install it. This is a one-time setup (~130MB download).

**Automatic Installation:**

1. Run any check command
2. Click "Install Chromium" when prompted
3. Wait for installation to complete

**Manual Setup:**

```bash
bunx playwright install chromium

Or run from Command Palette: "Scrape-LE: Setup Browser"

⚙️ Configuration

Basic Settings

  • scrape-le.browser.timeout – Navigation timeout (5s - 120s)
  • scrape-le.browser.viewport.width – Viewport width (320px - 3840px)
  • scrape-le.browser.viewport.height – Viewport height (240px - 2160px)
  • scrape-le.screenshot.enabled – Enable screenshot capture
  • scrape-le.screenshot.path – Screenshot save location
  • scrape-le.checkConsoleErrors – Capture console errors
  • scrape-le.notificationsLevel – Control notification verbosity
  • scrape-le.statusBar.enabled – Show status bar entry

Detection Features

  • scrape-le.detections.antiBot – Detect anti-bot systems (Cloudflare, reCAPTCHA, hCaptcha, DataDome, Perimeter81)
  • scrape-le.detections.rateLimit – Detect rate limiting headers
  • scrape-le.detections.robotsTxt – Check robots.txt policies
  • scrape-le.detections.authentication – Detect authentication walls

Real-World Configuration Examples

Production Scraper Validation

{
  "scrape-le.browser.timeout": 30000,
  "scrape-le.screenshot.enabled": true,
  "scrape-le.detections.antiBot": true,
  "scrape-le.detections.rateLimit": true,
  "scrape-le.detections.robotsTxt": true,
  "scrape-le.notificationsLevel": "important"
}

Quick Reachability Check

{
  "scrape-le.browser.timeout": 10000,
  "scrape-le.screenshot.enabled": false,
  "scrape-le.detections.antiBot": false,
  "scrape-le.detections.rateLimit": false,
  "scrape-le.detections.robotsTxt": false,
  "scrape-le.notificationsLevel": "silent"
}

Development Mode

{
  "scrape-le.browser.timeout": 60000,
  "scrape-le.screenshot.enabled": true,
  "scrape-le.checkConsoleErrors": true,
  "scrape-le.detections.antiBot": true,
  "scrape-le.detections.authentication": true,
  "scrape-le.notificationsLevel": "all"
}

⚠️ Behaviors & Limits

  • Browser launch requires ~130MB Chromium installation (one-time)
  • Timeout ranges from 5s to 120s; adjust based on target site complexity
  • Screenshots saved to .vscode/scrape-le/ by default
  • Large pages may take longer to capture full screenshots
  • Anti-bot detection uses heuristics; some systems may not be detected
  • robots.txt fetch has 5-second timeout
  • Authentication detection checks HTTP status, forms, and keywords

See docs/CONFIGURATION.md.

⚡ Performance

Scrape-LE performance varies by target website and network. See detailed benchmarks.

Scenario Page Size Duration Memory Status
Simple HTML < 100 KB < 2s < 20 MB
Complex 500 KB - 1 MB 3-5s 30-50 MB
Heavy JS (SPA) 1-3 MB 5-10s 50-100 MB ⚠️
Image-heavy 2-5 MB 5-15s 60-120 MB ⚠️

Browser: Launch 1-2s, screenshot 200-800ms PNG / 150-600ms JPEG
Detection: Anti-bot 85-90% accuracy (< 100ms), Rate limits 80-85% (< 50ms)
Full Metrics: docs/PERFORMANCE.md • Network-dependent performance

  • Timeout Configuration: Adjust based on target site complexity
  • Screenshot Impact: Adds 1-2s to overall check time
  • Detection Suite: Adds 500ms-2s for all checks combined

🧩 System Requirements

VS Code 1.70.0+ • Platform Windows, macOS, Linux
Memory 1GB recommended • Storage 150MB (includes Chromium)

🔒 Privacy

100% local processing. URLs only sent to sites you specify. No analytics or tracking.

🌍 Language Support

13 languages: English, German, Spanish, French, Indonesian, Italian, Japanese, Korean, Portuguese (Brazil), Russian, Ukrainian, Vietnamese, Chinese (Simplified)

🔧 Troubleshooting

"Executable doesn't exist" error?
Run "Scrape-LE: Setup Browser" from Command Palette to install Chromium

Check times out?
Increase timeout: scrape-le.browser.timeout (default 30s) or check network connection

Need help?
Check Issues or enable verbose logging: scrape-le.notificationsLevel: "all"

❓ FAQ

Need to install Chromium?
No, Scrape-LE handles it automatically on first use (~130MB download)

Works with localhost?
Yes, supports localhost, local IPs, and any accessible URL

Works with React/Vue/Angular?
Yes, uses real browser so SPAs render properly

Will sites detect this?
Uses headless Chromium which some sites detect. Use responsibly and check robots.txt

📊 Testing

96 unit tests33.61% function coverage, 40.41% line coverage
Powered by Vitest • Run with bun test --coverage


Copyright © 2025
@nolindnaidoo. All rights reserved.

About

Zero Hassle Web Scrapeability Checker - Verify page reachability, capture screenshots, and detect anti-scraping measures before deploying scrapers

Topics

Resources

License

Stars

Watchers

Forks