Skip to content

priyajeet-7396/Google_News_Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google News Scraper

This Python script allows you to scrape and download Google News search results related to any topic given as PDF files.

Prerequisites

  • Python 3.x
  • Git (optional, for version control)
  • Google News API key (if needed, based on your usage)

Setup

  1. Clone the repository:

    git clone https://github.com/priyajeet-7396/Google_News_Scraper.git
    cd Google_News_Scraper
  2. Install dependencies:

    pip install google
    pip install pdfkit

    For PDF conversion, you'll need wkhtmltopdf

Usage

  1. Run the script:

    python download_google_news.py
  2. The script will fetch Google News search results, convert each page to a PDF, and save them in the "Google_News_PDFs" directory.

Configuration

  • Adjust the search query in the search_query variable within the script for your desired topic.

About

python script to download webpage as pdf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages