1.0.1 • Published 4 years ago

@dothq/html-metadata-parser v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Attention! We've forked this project from nasa8x/html-metadata-parser. We don't own this project, so props to nasa8x for making this!

Html Metadata Parser

Html Metadata scraper and parser for Node.js

How To Build a Blog with Nest.js, MongoDB, and Vue.js

What is the difference between PM2 Cluster vs Fork Mode

What is new Renderer in Angular 9?

Install

npm install html-metadata-parser
yarn install html-metadata-parser
var Meta = require('html-metadata-parser');

Meta.parser('https://learnstartup.net/p/BJQWO5_Wnx', function (err, result) {

    console.log(result);
})
// async 

(async () => {

    var result = await Meta.parser('https://learnstartup.net/p/BJQWO5_Wnx');

    console.log(JSON.stringify(result, null, 3));


})();
// result

{
   "meta": {
      "title": "The Complete Node.js Developer Course (3rd Edition)",
      "description": "Learn Node.js by building real-world applications with Node, Express, MongoDB, Jest, and more!",
      "keywords": "javascript, angular, nodejs, blockchain, MongoDB, nodejs PHP,mobile app development, Responsive Web Design, Maketing",
      "canonical": "/p/BJQWO5_Wnx"
   },
   "og": {
      "title": "The Complete Node.js Developer Course (3rd Edition)",
      "description": "Learn Node.js by building real-world applications with Node, Express, MongoDB, Jest, and more!",
      "url": "",
      "site_name": "",
      "type": "",
      "images": [
         {
            "url": "https://i.udemycdn.com/course/750x422/922484_52a1_7.jpg"
         }
      ]
   },
   "images": [
      {
         "url": "https://i.udemycdn.com/course/750x422/922484_52a1_7.jpg"
      }
   ]
}