Skip to content

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.

License

Notifications You must be signed in to change notification settings

samiranghosh04/bbc-article-web-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published