Skip to content

GoldenCoqui/news-scrapping-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Scraper

The News Scraper is a Python program designed to scrape news articles from provided URLs, extracting relevant content, and saving it to individual text files. This README.md file provides comprehensive instructions on how to set up the environment, run the program, and understand the output.

Table of Contents

Setup

1. Clone the Repository

git clone https://github.com/your-username/news-scraper.git
cd news-scraper

2. Create Conda Environment

conda env create -f requirements.yml
conda activate news-scraper-env

Usage

1. Add URLs to urls.txt

2. Run the Program

python news_scraper.py

Output

The program will start scraping the articles. Individual text files will be created in the articles folder, named article_1.txt, article_2.txt, etc.

Additional Information

  • The program uses the BeautifulSoup library for web scraping.
  • Ensure you have an active internet connection for the program to fetch the articles.

If you encounter any issues or have questions, feel free to open an issue on this repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages