Sign inSign up

izerui/browser-fetch

By izerui

•Updated 8 months ago

web scraping service. Concurrent fetching, screenshots, Markdown conversion.

Image
Web servers
0

1.5K

izerui/browser-fetch repository overview

⁠Browser Fetch Service

🚀 High-performance web scraping service with Playwright

⁠Features

  • ⚡ Fully Async - Built with FastAPI + asyncio
  • 🔄 Auto-Restart - Prevents memory leaks
  • 📊 Monitoring - Built-in health check & metrics
  • 📸 Screenshots - Base64 encoded images
  • 📝 Markdown - Auto-convert HTML to Markdown
  • 🐳 Lightweight - Alpine-based image

⁠Quick Start

docker run -d -p 2025:2025 izerui/browser-fetch

Usage

# Fetch a webpage
curl -X POST http://localhost:2025/fetch_url \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'

Environment Variables
┌──────────────────────┬─────────┬─────────────────────────────┐
│       Variable       │ Default │         Description         │
├──────────────────────┼─────────┼─────────────────────────────┤
│ BROWSER_POOL_SIZE    │ 5       │ Number of browser instances │
├──────────────────────┼─────────┼─────────────────────────────┤
│ HEADLESS             │ true    │ Headless mode               │
├──────────────────────┼─────────┼─────────────────────────────┤
│ BROWSER_SERVICE_PORT │ 2025    │ Service port                │
└──────────────────────┴─────────┴─────────────────────────────┘
Documentation

https://github.com/your-username/browser-fetch

Tag summary

Content type

Image

Digest

sha256:f50d84bf5…

Size

527.1 MB

Last updated

8 months ago

docker pull izerui/browser-fetch