scraper-request

1.0.0 • Public • Published

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

/scraper-request/

    Package Sidebar

    Install

    npm i scraper-request

    Weekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • therewillbecode