Skip to content

Instantly share code, notes, and snippets.

@hendrixroa
Created March 9, 2023 23:04
Show Gist options
  • Save hendrixroa/52e601aeff5564f066fc997ae9e3d34e to your computer and use it in GitHub Desktop.
Save hendrixroa/52e601aeff5564f066fc997ae9e3d34e to your computer and use it in GitHub Desktop.
Main function that invokes scraper code
import { Scraper } from './scraper';
async function bootstrap() {
const scraper = new Scraper();
try {
const data = await scraper.scrape();
console.log(data);
} catch (e) {
console.error('error', e);
}
}
bootstrap();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment