Use with local file
Opened this issue · 1 comments
brauliobo commented
When caching or using fixtures, local file needs to be used instead of HTTP requests.
Using file:///localpath
doesn't work though! Couldn't find any documentation or method of working with contents or a local file
brauliobo commented
Switched to libxmljs-dom (based on https://github.com/rchipka/node-osmosis/blob/master/lib/Request.js#L51):
const libxml = require('libxmljs-dom')
var doc = libxml.parseHtml(html)
doc.querySelector('table')