Instantly share code, notes, and snippets.

@rayriffy rayriffy/index.js Secret
Created Feb 7, 2019

Embed
What would you like to do?
import cheerio from 'cheerio'
import rp from 'request-promise'
rp({
uri: `https://example.com/`,
transform: body => {
return cheerio.load(body)
},
})
.then($ => {
console.log($)
})
.catch(e => {
console.error(e)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment