node-web-scraper-pro
v1.0.0
Published
A simple Node.js package for scraping any website data
Maintainers
Readme
Node Web Scraper Pro
A simple Node.js package to scrape any website's data — supports both static & dynamic pages.
Installation
npm install node-web-scraper-proUsage
import { scrapeWebsite } from "node-web-scraper-pro";
// Static example
const data = await scrapeWebsite("https://example.com", {
selector: "h1"
});
console.log(data);
// Dynamic example
const links = await scrapeWebsite("https://example.com", {
selector: "a",
attr: "href",
dynamic: true
});
console.log(links);
Options
selector — CSS selector (optional)
attr — Attribute name to extract instead of text
dynamic — Set to true to use Puppeteer for JS-rendered pages
