
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@themaximalist/scrape.js
Advanced tools
Scrape.js is an easy to use web scraping library for Node.js.
const data = await scrape("https://example.com");
// { url, html }
Features
Install Scrape.js from NPM:
npm install @themaximalist/scrape.js
Scrape.js uses Zen Rows for proxy rotation. To use it acquire a Zen Rows API key and setup the environment variable.
ZENROWS_API_KEY=abcxyz123
Scrape.js can be used without proxies, but is less effective.
Using Scrape.js is as simple as calling a function with a website URL.
const scrape = require("@themaximalist/scrape.js");
await scrape("http://example.com"); // { url, html }
You can specify additional options to scrape() for more control:
const data = await scrape("https://example.com", {
headless: true,
proxy: true
});
// { url, html }
The Scrape.js API is a simple function you call with your URL, with an optional config object.
await scrape(
url, // URL to scrape
{
headless: true, // Use JavaScript headless scraping
proxy: true, // Use proxy rotation
method: "GET", // HTTP Request method
timeout: 3000, // Scrape timeout in ms
userAgent: "Mozilla/5.0...", // User Agent
}
);
URL (required)
url <string>: URL to scrapeOptions
headless <bool>: Enable JavaScript. Default is true.proxy <bool>: Use proxy with request. Default is true.method <string>: HTTP request method, usually GET or POST. Default is GET.timeout <int>: Max request time in ms. Default is 3500.userAgent <string>: User agent for request. Default is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36.Response
Scrape.js returns an object containing the final url and html content.
const { url, html } = await scrape("https://example.com");
console.log(url); // https://example.com/
console.log(html); // <html...
The Scrape.js API is a simple and reliable way to scrape the HTML from any website.
Scrape.js uses the debug npm module with the scrape.js namespace.
View debug logs by setting the DEBUG environment variable.
> DEBUG=scrape.js*
> node src/get_website_html.js
# debug logs
View tests to examples on how to use Scrape.js.
Scrape.js is currently used in the following projects:
MIT
Created by The Maximalist, see our open-source projects.
FAQs
Simple but feature-packed web scraping library for Node.js.
We found that @themaximalist/scrape.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.