Skip to content

Instantly share code, notes, and snippets.

@nitipatl
Created Jul 10, 2019
Embed
What would you like to do?
var osmosis = require('osmosis');
osmosis
.get('http://quotes.toscrape.com/')
.find('div.quote')
.set({
quote: 'span.text',
author: 'span > small.author',
tags: ['div.tags > a.tag'],
})
.data(function(res) {
console.log(res)
})
.log(console.log)
.error(console.log)
.debug(console.log)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment