FarisKarim / NewsHeadlinesScraper

A tool that scrapes headlines from popular news sources and prints them side by side.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NewsHeadlinesScraper

Description

A tool designed to fetch and compare headlines from leading news sources like BBC, CNN, FOX, and NYT.

Features

  • Fetch headlines from sites like BBC, CNN, FOX, and NYT.
  • Display headlines side by side for comparative analysis.
  • Customize the sources you want to scrape through user input.

Installation and Setup

1.) Clone the repository:

git clone https://github.com/FarisKarim/NewsHeadlinesScraper.git

2.) Navigate to the project directory

3.) Activate the virtual environment:

source venv/bin/activate

4.) Install the required libraries and dependencies:

pip3 install -r requirements.txt

5.) Run the scraper with python3 main.py

python3 main.py

Usage

Select the news sources you want

Search Image

The results for each news source will be joined in a table for side-by-side comparison.

Results Image

Current News Sources

  • CNN
  • BBC
  • NYT
  • FOX
  • CBS
  • Ars Technica

Future Enhancements

Some improvements that are on the way:

  • More news sources
  • Headlines tailored to specific regions or countries through user input
  • Add tech sites for tech news

About

A tool that scrapes headlines from popular news sources and prints them side by side.


Languages

Language:Python 100.0%