Dev.to
6/19/2026

Scraping Dynamic Web Pages Without Selectors Using AI Vision (TypeScript/JavaScript Tutorial)
Short summary
Opticparse is an AI-powered web scraper that uses Gemini's vision intelligence to extract structured data from screenshots instead of parsing HTML. This approach works reliably even when websites change their CSS class names or layouts. The tutorial demonstrates a working TypeScript implementation that scrapes Hacker News in under 10 lines of code.
- •Uses AI vision models instead of CSS selectors for robust web scraping
- •Handles dynamic layouts and CSS class name changes automatically
- •Includes ready-to-use TypeScript SDK with working Hacker News example
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



