microdata_parser

2.0.1 • Public • Published

Schema.org Microdata to JSON-LD Parser

This parser can be used in order to parse html content from a website or a file and convert it into the JSON-LD format.

The project was programmed by 3 computer science students of the University of Innsbruck.

This will be the final version. (2.0.1)

Usage

parseSite("www.schema.org"), parse("-u", "www.schema.org")

Parses a website for schema.org annotations in microdata format.
Sites can also start with http(s).

parseFile("C:\\tmp\\index.html"), parse("-f", "C:\\tmp\\index.html")

Parses a html file for schema.org annotations in microdata format.
The path can either be absolute or relative to the running program.

getData()

Returns a JSON-LD object with the desired data when parsing is finished.
Contains an error message if something did not work.

Package Sidebar

Install

npm i microdata_parser

Weekly Downloads

0

Version

2.0.1

License

ISC

Last publish

Collaborators

  • kuro95