Skip to content

Instantly share code, notes, and snippets.

@kevinchisholm
Last active August 29, 2020 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinchisholm/ab98b0e67bdb392433abca85dcec56de to your computer and use it in GitHub Desktop.
Save kevinchisholm/ab98b0e67bdb392433abca85dcec56de to your computer and use it in GitHub Desktop.
Scraper API Example # 2 A
const scraperapiClient = require('scraperapi-sdk')(YOUR_API_KEY);
async function scrapePage(){
const scrapeUrl = 'http://examples.kevinchisholm.com/scrape-me/'
const scrapeResponse = await scraperapiClient.get(scrapeUrl, {render: true})
console.log(scrapeResponse);
}
scrapePage();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment