This project is a simple Python web scraper that extracts news headlines from a public news website and stores them in a text file.
- Sends HTTP GET requests
- Parses HTML using BeautifulSoup
- Extracts news headlines
- Saves headlines to a text file
- Simple and beginner-friendly
- Python 3
- Requests
- BeautifulSoup4
news_scraper.py
headlines.txt
README.md
Install required packages:
pip install requests beautifulsoup4python news_scraper.pyThe scraped headlines are stored in:
headlines.txt
- HTTP Requests
- Web Scraping
- HTML Parsing
- File Handling
Pratik Tawal