/lenovo_challenge_with_nodejs

Scraper developed for a challenge to scrape lenovo laptops from website

Primary LanguageJavaScript

lenovo_challenge_with_nodejs

Description

  • Go to webscraper.io and get all Lenovo notebooks sorted from the cheapest to the most expensive.

Framework used

  • Express.js

Packages used

  • axios
  • cheerio
  • ejs

Note📝

  • The laptops' information are collected and displayed almost like simultaneously

Getting Started

Git Clone this repository:

git clone https://github.com/wjj28/lenovo_challenge_with_nodejs.git

CD into the project folder:

cd lenovo_js

Install the Node packages

npm install --save

Render the webpage to get all the data

nodemon .\server.js

Objectives Breakdown

  • Collect all the Lenovo laptops' links from the website
  • Collect the information available for each laptop
  • Sort the laptops by price (from cheapest to the most expensive)
  • Generate a RESTful API to display the laptops' information in JSON format

What Was Successfully Accomplished

  • Collecting all the Lenovo laptops' info
  • Sorting the laptops by price
  • Generate a RESTful API to display the laptops' information in JSON format

Built With