1.0.1 • Published 2 years ago

docpa v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Docpa

A simple library that I use for web scraping. Uses htmlparser2 to parse dom.

Usage

const Docpa = require("docpa")

const doc = new Docpa(`<html>...</html>`)

// Available methods/properties
doc.getAttribute
doc.hasAttribute
doc.querySelector
doc.querySelectorAll
doc.parentElement
doc.prevSibling
doc.nextSibling
doc.className
doc.classList
doc.tagName
doc.id
doc.innerText
doc.textContent
doc.innerHTML
doc.outerHTML
doc.children
doc.firstChild
doc.lastChild

License

MIT