Skip to content

Instantly share code, notes, and snippets.

View vasanthv's full-sized avatar

vasanth vasanthv

View GitHub Profile
@vasanthv
vasanthv / extract.js
Created March 15, 2024 20:04 — forked from Sennahoi/extract.js
Extract bookmarks from a netscape bookmark file with node.js
var cheerio = require("cheerio"),
fs = require("fs");
fs.readFile('bookmarks.html', "utf-8", function read(err, data) {
if (err) {
throw err;
}
var $ = cheerio.load(data);
$("a").each(function(index, a) {