beautiful-scrape
0.0.3 • Public • Published beautiful-scrape
var beautiful = require('beautiful-scrape')
class MyClass {
async scrapeExample() {
const reddit = await beautiful.scrape('http://www.reddit.com');
const title = reddit.find("a.title")
console.log(title)
reddit.findAll("a.title").forEach(title =>{
console.log(title)
});
console.log(reddit.dom)
const html = await beautiful.parse('<div>hello</div><div>world</div>');
html.findAll("div").forEach(div =>{
console.log(div)
});
}
}
Package Sidebar
Install
Weekly Downloads