Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/capturr/jsonld-extract
A damn simple tool to extract json-ld metadata from webpage using jquery like api (jQuery, Cheerio, CashDom ...).
https://github.com/capturr/jsonld-extract
cashdom cheerio crawler crawling data extract extractor javascript jquery json jsonld metadata nodejs parser scraper scraping spider typescript
Last synced: 8 days ago
JSON representation
A damn simple tool to extract json-ld metadata from webpage using jquery like api (jQuery, Cheerio, CashDom ...).
- Host: GitHub
- URL: https://github.com/capturr/jsonld-extract
- Owner: capturr
- Created: 2021-08-26T08:36:53.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-02T06:26:22.000Z (about 3 years ago)
- Last Synced: 2024-10-06T23:45:12.409Z (about 1 month ago)
- Topics: cashdom, cheerio, crawler, crawling, data, extract, extractor, javascript, jquery, json, jsonld, metadata, nodejs, parser, scraper, scraping, spider, typescript
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Json-LD Extractor
A damn simple tool to extract json-ld metadata from webpage using jquery like api (jQuery, Cheerio, CashDom ...).
[![npm](https://img.shields.io/npm/v/jsonld-extract)](https://www.npmjs.com/package/jsonld-extract)
## Installation
```bash
npm install --save jsonld-extract
```## Tested APIs
* jQuery
* Cheerio
* CashDom## Usage example (Nodejs)
```javascript
import jsonldextract from 'jsonld-extract';
import cheerio from 'cheerio';const $ = cheerio.load( html );
const $jsonld = jsonldextract($);const data = $jsonld('product.name');
console.log('Extracted data:', data);
```