This Python script allows you to scrape and download Google News search results related to any topic given as PDF files.
- Python 3.x
- Git (optional, for version control)
- Google News API key (if needed, based on your usage)
-
Clone the repository:
git clone https://github.com/priyajeet-7396/Google_News_Scraper.git cd Google_News_Scraper
-
Install dependencies:
pip install google pip install pdfkit
For PDF conversion, you'll need wkhtmltopdf
-
Run the script:
python download_google_news.py
-
The script will fetch Google News search results, convert each page to a PDF, and save them in the "Google_News_PDFs" directory.
- Adjust the search query in the
search_query
variable within the script for your desired topic.