Skip to content

mel90525/News-Scraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“° news-fetch

news-fetch is an open-source, easy-to-use news crawler that extracts structured information from almost any news website 🌐. It can recursively follow internal hyperlinks and read RSS feeds to fetch both recent and archived articles πŸ“š. You only need to provide the root URL of the news website to crawl it completely πŸ”. News-fetch combines the power of multiple state-of-the-art libraries and tools.

I built this tool to minimize NaN or empty values when scraping data from various news websites πŸš€. It's platform-independent and written in Python 3, making it easy for programmers and developers to access news data for their applications πŸ’».


πŸ“¦ Dependencies

πŸ“ Extracted Information

news-fetch extracts the following attributes from news articles. You can also check out an example JSON file generated by news-please.

  • πŸ“° Headline
  • ✍️ Author(s)
  • πŸ“… Publication date
  • πŸ—žοΈ Publication
  • πŸ“‚ Category
  • 🌍 Source domain
  • πŸ“‘ Article content
  • πŸ“ Summary
  • πŸ”‘ Keywords
  • 🌐 URL
  • 🌐 Language

πŸ”§ Dependency Installation

Use the package manager pip to install the required dependencies:

pip install -r requirements.txt

πŸš€ Usage

You can download it by clicking the green download button.

To scrape all the news details, use the newspaper function:

🀝 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

Make sure to update tests as appropriate.

About

news-fetch is an open-source, easy-to-use news crawler that extracts structured information from almost any news website 🌐. It can recursively follow internal hyperlinks and read RSS feeds to fetch both recent and archived articles πŸ“š. You only need to provide the root URL of the news website to crawl it completely

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages