Skip to content

Aayush-khadka/Nepali-News-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nepali News Scraper

A JavaScript-based web scraping tool powered by Puppeteer. This tool extracts news articles from popular Nepali news sources, allowing users to retrieve the latest articles across categories such as finance, sports, politics, art & culture, and the valley. Users can also scrape individual articles by providing the article URL from supported sites.


Features

  • Retrieve news articles by category from supported sites.
  • Scrape individual articles with a specific URL.
  • Data includes metadata such as title, subtitle, author, publication date, and content.

Supported News Sources


Planned News Sources

The following sources are in the pipeline for support:


Installation

  1. Clone the repository:
    git clone https://github.com/Aayush-khadka/Nepali-News-Scraper.git
  2. Navigate to the project directory:
    cd Nepali-News-Scraper
  3. Install the required dependencies:
    npm install

Example Output

The following is a sample of the structured data output from a scraped article:

{
  "title": "Article Title",
  "subtitle": "Article Subtitle",
  "authorName": "Author Name",
  "authorProfileLink": "https://kathmandupost.com/authors/author-name",
  "articleLink": "https://kathmandupost.com/politics/2023/10/10/example-article",
  "articleImage": "https://kathmandupost.com/images/example-image.jpg",
  "publishedTime": "2023-10-10T12:00:00",
  "updatedTime": "2023-10-10T14:00:00",
  "updatedPlace": "Kathmandu",
  "articleText": "Full text of the article...",
  "articleType": "category"
}

Disclaimer

This project is developed for educational purposes only. The developer is not responsible for any misuse of the tool. Please adhere to the terms of service of the websites being scraped and use the tool responsibly.


Contact

For any issues or feedback, feel free to reach out:


About

Nepali News Scraper is a JavaScript tool built with Puppeteer to scrape news articles from various news sources. It allows users to fetch articles by categories and URL extracting details such as title, author, published time, and content etc.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors