scraper-request
v1.0.0
Published
Makes a http request and stores metadata
Downloads
1
Readme
scraper-request
only dependency is the request module
scrape class - methods and properties to scrape a single page
var scraper-class = require('scraper-request/src/listingClass.js')
** set url for the page we want to scrape the html body ** var url = 'http://www.google.com'
var location = 'uk'
var googleScrape = new scraper-class(url, location)
make request
googleScrape.makeRequest().then((result) => {
print html response console.log(listingScrape.html)
**print date + time of scrape ** console.log(googlescrape.scrapedate) })