Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

HTML Meta Parser

node v10.24.1
version: 1.0.0
endpointsharetweet
const { fetch } = require('popsicle'); const { Parser } = require('htmlparser2'); const { Handler } = require('htmlmetaparser');
const url = "https://medium.com/slack-developer-blog/everything-you-ever-wanted-to-know-about-unfurling-but-were-afraid-to-ask-or-how-to-make-your-e64b4bb9254"; const res = await fetch(url); const handler = new Handler((err, result) => console.log(result), { url }); const parser = new Parser(handler, { decodeEntities: true }); parser.write(await res.text()); parser.done();
Loading…

no comments

    sign in to comment