This project is a tool that fetches laptop deals from the Lenovo US Outlet and returns a JSON with data to standard output.
- Node.js (tested on v13.6.0)
Clone the repository and install dependencies.
git clone https://github.com/hajekjiri/lenovo-outlet-scraper.git
cd lenovo-outlet-scraper
npm install
You can either use the incuded app npm-run-script
or run main.js directly.
npm run app --silent -- <args>
node ./src/main.js <args>
Show list of options
Show version number
Ignore laptops that are out of stock
Ignore refurbished laptops
Ignore new laptops
npm install -g npx
Mocha is the framework of choice for testing. All tests are located in the test
folder. Use the test npm-run-script
to run tests.
npm run test
This project is following the Google JavaScript Style Guide. Use the lint npm-run-script
to check whether the code is compliant.
npm run lint
Documentation can be generated with the doc npm-run-script
using JSDoc and then accessed at docs/index.html
.
npm run doc
- axios/axios is licensed under the MIT license
- cheeriojs/cheerio is licensed under the MIT license
- yargs/yargs is licensed under the MIT license