This script is a web scraper written in Node.js using Cheerio and node-fetch to fetch and extract data from the IMDb Top Rated Movies page. It retrieves the movie names and their ratings from the page and displays them in the console.
Before running the script, make sure you have Node.js installed on your machine.
-
Clone the repository:
git clone https://github.com/2912anushka/WebCrawler.git
-
Navigate to the project directory:
cd WebCrawler
-
Install the required dependencies:
npm install
Run the script using the following command:
npm start
The script will fetch the IMDb Top Rated Movies page, scrape the movie names and ratings, and display them in the console.
- Node.js
- Cheerio
- node-fetch