scraper.js
function scrape(dyn, url, scope, selector) {
  return new Promise(function(dresolve, dreject) {
    var scraper = dyn ? dx : x;
    scraper(url, scope, selector)(function(err, res) {
      dresolve(res);
    })
  })
}
function scrape(dyn, url, scope, selector) {
  return new Promise(function(dresolve, dreject) {
    var scraper = dyn ? dx : x;
    scraper(url, scope, selector)(function(err, res) {
      dresolve(res);
    })
  })
}
function scrape ( dyn , url , scope , selector ) { return new Promise ( function ( dresolve , dreject ) { var scraper = dyn ? dx : x ; scraper ( url , scope , selector ) ( function ( err , res ) { dresolve ( res ) ; } ) } ) }
Scrapes a url with html selectors. If dyn == true, use a dynamic scraper dx. Returns a promise.
Scrapes a url with html selectors . If dyn == true use a dynamic scraper dx . Returns a promise .