scrape-util
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -42,11 +42,7 @@ const path = require('path'); | ||
function getHTML(url, name, transform = $) { | ||
function getHTML(url, transform = $) { | ||
return () => { | ||
console.log(`Retrieving ${name} content.`); | ||
return request({ | ||
uri: url, | ||
transform | ||
}).then(data => { | ||
console.log(`Retrieved ${name} content.`); | ||
return data; | ||
}); | ||
@@ -53,0 +49,0 @@ }; |
{ | ||
"name": "scrape-util", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Utilities to assist in scraping HTML pages in NodeJS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5157
76