Skip to content

Instantly share code, notes, and snippets.

@kevinchisholm
Last active August 29, 2020 20:48
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/63942c078173bfdb92cc6c2e754c0fd8 to your computer and use it in GitHub Desktop.
Save kevinchisholm/63942c078173bfdb92cc6c2e754c0fd8 to your computer and use it in GitHub Desktop.
Scraper API Example # 1 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)
console.log(scrapeResponse);
}
scrapePage();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment