Extracts OpenGraph data, linked data and metadata from web pages in a very easy way.
import metadata from '@rojo2/metadata';
const pageMetadata = await metadata.get('https://<product url>')
console.log(pageMetadata)
$ npm i -g @rojo2/metadata
$ metadata <url>
If you use now you can simply run now
and you'll have a useful
serverless service for extracting web page metadata.
$ now
$ npm install
$ npm test
- Add more tests/better code coverage
- Add better open graph parsing (right now it only extracts type, image, title, description and url)
- Add more user agents (or make an optional parameter to pass your own user agent)
- Add more serverless services?
- Add dockerized version?
Made with ❤️ by ROJO 2 http://rojo2.com