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.
git clone https://github.com/your-username/news-scraper.git
cd news-scraper
conda env create -f requirements.yml
conda activate news-scraper-env
python news_scraper.py
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.
- 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.