Skip to content

pratikkkk-code/python-news-headlines-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

python-news-headlines-scraper

News Headlines Web Scraper

Overview

This project is a simple Python web scraper that extracts news headlines from a public news website and stores them in a text file.

Features

  • Sends HTTP GET requests
  • Parses HTML using BeautifulSoup
  • Extracts news headlines
  • Saves headlines to a text file
  • Simple and beginner-friendly

Technologies Used

  • Python 3
  • Requests
  • BeautifulSoup4

Files

news_scraper.py
headlines.txt
README.md

Installation

Install required packages:

pip install requests beautifulsoup4

How to Run

python news_scraper.py

Output

The scraped headlines are stored in:

headlines.txt

Learning Outcomes

  • HTTP Requests
  • Web Scraping
  • HTML Parsing
  • File Handling

Author

Pratik Tawal

About

Python web scraper that extracts news headlines using Requests and BeautifulSoup and saves them to a text file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages