1.0.0 • Published 8 years ago

scraper-request v1.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

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) })