UNPKG

rt-scraper

Version:

This package, without an API key, will scrape the front page of RottenTomatoes.com for the movies opening this week, top box office, and coming soon.

15 lines (12 loc) 437 B
// Usage example of rt-scraper package // See https://www.npmjs.com/package/rt-scraper var rtscraper = require('rt-scraper'); console.log('Usage example of the rt-scraper package.') rtscraper.getRottenTomatoesScraperData( function(error, data) { if (!error) { console.log(JSON.stringify(data, null, 2)); } else { console.log('Some error occured.'); } });