Hubdoc Robot Dev Code Test
Contained in this repository is the WebScraper.js file which will utilize the Headless Chrome Library: Puppeteer, to complete the following task:
- Navigates to Google.com
- Searches for 'datatables'
- Finds and selects the https://datatables.net website
- Extracts all of the data in the table as an array of objects
- Exports the data as a .CSV file for easy viewing
How To Run:
- Ensure you have Node.JS installed on your computer (can be installed here: https://nodejs.org/en/download/)
- Install Puppeteer with the following command line: npm install --save puppeteer
- Install the Objects-To-CSV package with the following command line: npm i objects-to-csv
- Navigate to this repository and type: node WebScraper.js
- (Note: if you wish to watch the process occur, open the file and on line 7 change the 'true' to 'false')
- Open the .csv file to view the results