1.0.0 • Published 8 years ago
scraper-request v1.0.0
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) })
1.0.0
8 years ago