
Waterfall-Fetch
Waterfall-Fetch is a powerful and flexible utility for web scraping and HTML fetching, employing a cascading retry approach with multiple strategies. It’s designed to provide a robust solution for retrieving HTML content from websites, even when faced with various challenges. But above all it is designed to be simple.NPM
Download from Node Package Manager (NPM)
Quick Start
Get up and running with Waterfall-Fetch in minutes
API Reference
Explore the Waterfall-Fetch API
Key Features
Multiple Fetching Strategies
Multiple Fetching Strategies
Utilizes Axios, Node-fetch, and Puppeteer for optimal content retrieval
Waterfall Approach
Waterfall Approach
Intelligently cascades through strategies to ensure successful fetching
Stealth Mode
Stealth Mode
Employs Puppeteer for JavaScript-heavy sites, enhancing scraping capabilities
Customizable Strategy Prioritization
Customizable Strategy Prioritization
Allows you to tailor the fetching process to your specific needs
Built-in Error Handling
Built-in Error Handling
Robust error management for reliable scraping operations
TypeScript Support
TypeScript Support
Fully typed for enhanced developer experience and code quality
How Waterfall-Fetch Works
This diagram illustrates the cascading approach of Waterfall-Fetch:- It starts with the fastest method (Axios).
- If that fails, it moves to Node-fetch.
- If Node-fetch fails, it uses Puppeteer as a last resort.
- If all methods fail, it returns an error.