@priceanalytics/structured-data-scraping
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@priceanalytics/structured-data-scraping

Structured data extractor ld+json

Instalation

$ yarn add @priceanalytics/structured-data-scraping --save

Use

import StructuredDataScraping from "@priceanalytics/structured-data-scraping";

StructuredDataScraping
    //.load("")
    //.loadFromFile("sample.html")
    //.download("URL")
    .then((body) => StructuredDataScraping.parser(body))
    .then((result: any) => {
        // eslint-disable-next-line no-console
        console.log(JSON.stringify(result, null, 4));
    })
    .catch((err) => {
        // eslint-disable-next-line no-console
        console.log(err);
    });

Package Sidebar

Install

npm i @priceanalytics/structured-data-scraping

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

17.5 kB

Total Files

18

Last publish

Collaborators

  • andrehrf