Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: cheerio
node v15.14.0
endpoint
share
tweet
const cheerio = require('cheerio') const fetch = require('isomorphic-unfetch') const BNR_URL = 'https://www.bnr.ro/nbrfxrates.xml' fetch(BNR_URL) .then((response) => response.text()) .then((xml) => { const $ = cheerio.load(xml, { xmlMode: true, }) console.log($('Rate')) })
Created from: https://npm.runkit.com/cheerio
Loading…
Clone and edit this document