
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@marbec/web-auto-extractor
Advanced tools
This project is a fork of indix/web-auto-extractor.
Parse semantically structured information from any HTML webpage.
Supported formats:
Popularly, many websites mark up their webpages with Schema.org vocabularies for better SEO. This library helps you parse that information to JSON.
npm i --save @marbec/web-auto-extractor
import WebAutoExtractor from '@marbec/web-auto-extractor';
const parsed = new WebAutoExtractor({
// Add location information to the root elements in the parsed data.
// Location is stored as start,end offset values in the @location property.
addLocation: false,
// Embed the source HTML in the root elements in the parsed data using the @source property.
// This property is either a boolean to embed sources for all data types or an array of data types to embed sources for.
embedSource: false,
}).parse(sampleHTML);
// Output format
/* {
"metatags": {},
"microdata": {},
"rdfa": {},
"jsonld": {}
} */
You can run the parser directly in the browser on any website using the following commands:
const { default: WebAutoExtractor } = await import(
'https://unpkg.com/@marbec/web-auto-extractor@latest/dist/index.js'
);
new WebAutoExtractor().parse(document.documentElement.outerHTML);
See test cases for sample in- and outputs.
FAQs
Automatically extracts structured information from webpages
The npm package @marbec/web-auto-extractor receives a total of 7,033 weekly downloads. As such, @marbec/web-auto-extractor popularity was classified as popular.
We found that @marbec/web-auto-extractor 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.