News Headline Scraper
This Python script scrapes top news headlines from BBC News using:
- requests
- BeautifulSoup
- Fetch HTML using a GET request
- Parse the page using BeautifulSoup
- Look for
<h2>and<h3>tags - Extract headlines
- Save all headlines into
headlines.txt
- news_scraper.py → Main script
- headlines.txt → Scraped output