@sumanreddy/url-fetcher
v1.0.5
Published
A simple URL fetcher library
Downloads
12
Maintainers
Readme
@sumanreddy/url-fetcher
A powerful URL fetcher and crawler library that discovers and extracts valid URLs from the web.
Installation
npm install @sumanreddy/url-fetcherUsage
import { fetchUrls } from "@sumanreddy/url-fetcher";
// Fetch 10 URLs
const urls = await fetchUrls(10);
console.log(urls);
// Fetch default number of URLs
const moreUrls = await fetchUrls();
console.log(moreUrls);CLI Usage
node src/index.js 5 # Fetch 5 URLsFeatures
- Configurable URL count
- Smart crawling with retry mechanism
- Domain diversity control
- Bot detection avoidance
- Respects robots.txt and site policies
