This is a simple program written in javascript that scrapes the information related to different GPU's and their prices from the nvidia website and serves it as a map of product names and their prices ("NA") if no price mentioned from a locally hosted server on port 8000 (Default)
Uses the selenium webdriver for scraping the data and express.js for making a local server
- nodejs and npm
- web-driver for the browser you intend to use (check
Usage
for info on this)
- Clone the repository
- run
npm i
- run
npm run start-server
ornode src/app.js
- Visit
index.html
through your browser or visitlocalhost:8000
to view the results
if no options provided, the program uses firefox as the default browser which can be overriden by the SELENIUM_BROWSER
environment variable like this(for chrome):
$ SELENIUM_BROWSER=chrome npm run start-server
please visit the docs for more options