Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.35 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.35 KB

BBC Article Scraper

This is a simple web scraper built using Node.js, Express, Cheerio, and Axios. It fetches the latest articles from the BBC website (https://www.bbc.com/) and prints an array of objects called "articles" to the console. Each object contains the headline and the link to the article.

Prerequisites

  • Node.js installed on your machine

Installation

  1. Clone the repository or download the source code.

  2. Open a terminal and navigate to the project directory.

  3. Install the dependencies by running the following command:

    npm install

Usage

  1. Open a terminal and navigate to the project directory.

  2. Run the following command to start the scraper:

    npm run start
  3. Once the scraper starts, it will fetch the latest articles from the BBC website and print the array of objects to the console.

Technologies Used

  • Node.js - A JavaScript runtime environment.
  • Express - A web application framework for Node.js.
  • Cheerio - A fast, flexible, and lean implementation of jQuery for server-side scraping.
  • Axios - A promise-based HTTP client for Node.js.

License

This project is licensed under the MIT License.

Acknowledgements