
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
webcrawlerapi-js
Advanced tools
Official client for WebcrawlerAPI.
WebcrawlerAPI allows you to extract data from any website with just a simple API call.
Install WebcrawlerAPI js package:
npm i webcrawlerapi-js
import webcrawlerapi from "webcrawlerapi-js";
async function main() {
const client = new webcrawlerapi.WebcrawlerClient(
"YOUR API ACCESS KEY HERE",
)
// sync way - promise will be resolved with the all the data
const syncJob = await client.crawl({
"items_limit": 10,
"url": "https://stripe.com/",
"scrape_type": "markdown"
}
)
console.log(syncJob);
// or async - get the job id and then poll the job status and get the data
const jobWithId = await client.crawlAsync({
"items_limit": 10,
"url": "https://stripe.com/",
"scrape_type": "markdown"
}
)
// wait for job to complete
const jobId = jobWithId.id;
let asyncJob = await client.getJob(jobId);
console.log(asyncJob);
}
main().catch(console.error);
{
id: '49c4942b-b7d9-4d62-94b5-b54a3016ac51',
org_id: 'clxsnorta00075wuuqxgzzvxm',
url: 'https://stripe.com/',
scrape_type: 'markdown',
whitelist_regexp: '',
blacklist_regexp: '',
allow_subdomains: false,
items_limit: 10,
created_at: '2024-12-28T21:36:04.417Z',
finished_at: null,
updated_at: '2024-12-28T21:36:04.383Z',
webhook_url: '',
status: 'in_progress',
job_items: [
{
id: 'f26cefe1-09d1-4d4c-8b74-b65e075e230d',
job_id: '49c4942a-b7d9-4d62-94b5-b54a3016ac51',
original_url: 'https://stripe.com/',
page_status_code: 0,
status: 'new',
title: '',
last_error: '',
created_at: '2024-12-28T21:36:04.468Z',
updated_at: '2024-12-28T21:36:04.435Z',
cost: 0,
referred_url: ''
}
],
recommended_pull_delay_ms: 5000
}
FAQs
JS client for WebcrawlerAPI
The npm package webcrawlerapi-js receives a total of 70 weekly downloads. As such, webcrawlerapi-js popularity was classified as not popular.
We found that webcrawlerapi-js demonstrated a healthy version release cadence and project activity because the last version was released less than 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
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.