structured_data 0.1.2 copy "structured_data: ^0.1.2" to clipboard
structured_data: ^0.1.2 copied to clipboard

outdated

A collection of functions for parsing structured data from web pages or local html documents

Structured Data #

A collection of functions for parsing structured data from web pages. The library supports parsing microdata, rdfa, and jsonld forms of structured data embedded in a web page.

This has not been used in any production application yet, so it may be lacking features or have some bugs that I haven't encountered yet. Please create issue reports on github to give feedback

Usage #

To parse structured data from a web page:

List<StructuredData> data = await StructuredDataImporter.importUrl("path/to/website");

To parse structured data from an already loaded web page

List<StructuredData> data = StructuredDataParser.extract(htmlDocument);

StructuredData is a dictionary-like object

StructuredData someData;
// Load data by importing from URL
someData["property"]

Future Improvements #

Eventually I may overlay some wrapper classes for accessing structured data so it's more than a glorified map.

References #

5
likes
0
pub points
9%
popularity

Publisher

unverified uploader

A collection of functions for parsing structured data from web pages or local html documents

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

html, http

More

Packages that depend on structured_data