Skip to content

RajTimalsina/NewsScraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Nepal Politics News Scraper

A simple Python web scraper that collects the latest political news headlines from popular Nepali news websites and stores them in a JSON file.


Description

This project scrapes political news headlines from:

The script sends HTTP requests to each website, extracts headline elements using BeautifulSoup, and saves all collected titles into a news.json file.


Features

  • Scrapes multiple news websites
  • Uses custom headers to reduce blocking
  • Extracts headlines automatically
  • Saves results in JSON format
  • Handles request timeout errors
  • Adds delay between requests to avoid overwhelming servers

Technologies Used

  • Python 3
  • requests
  • BeautifulSoup (bs4)
  • json
  • time

About

Python program to scrape political news

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages