Created
March 9, 2023 23:04
-
-
Save hendrixroa/52e601aeff5564f066fc997ae9e3d34e to your computer and use it in GitHub Desktop.
Main function that invokes scraper code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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