Skip to content

Scrape Google News with HasData’s API. Choose topics, set keywords, filter by country and language, sort results, preview them in-app, and export as JSON or CSV. Perfect for analysts, researchers, and developers.

Notifications You must be signed in to change notification settings

HasData/google-news-scraper-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python

Google News Scraper with HasData API

HasData_banner

This Streamlit app lets you scrape Google News directly using the HasData Google News API. You can choose a topic, set search keywords, filter by country, language, or sort order, and fetch structured news data. The results can be previewed in the app and downloaded as JSON or CSV.

It’s useful for researchers, analysts, developers, or anyone who needs organized news data without coding.

🚀 What This App Does

You provide your HasData API key, select a topic or use a custom TopicToken, optionally fill section, publication, or story tokens, and define filters for country, language, and sort order. Preview The app sends your query to HasData’s API, fetches the results, and shows them in a clean table with all relevant fields like title, link, source, authors, thumbnails, and stories JSON.

You can download the results as JSON or CSV for further analysis or integration into workflows.

🛠️ Installation

Requires Python 3.11+.

pip install streamlit pandas requests

▶️ Run the App

streamlit run app.py

Replace app.py with your filename if different.

How It Works

Enter your API key and choose your query parameters. You can select one of the predefined topics or provide a custom TopicToken. You can also filter by country, language, and sort order. Press Scrape News to fetch the results.

Each news item includes:

  • Position in feed
  • Title and link
  • Source name and authors
  • Publication date
  • Thumbnail images
  • Stories JSON

The results appear in a table and can be downloaded directly.

Output

The exported files include all displayed fields, making it easy to feed the data into dashboards, analysis scripts, or reporting pipelines.

Disclaimer

These examples are for educational purposes only. Learn more about the legality of web scraping.

📎 More Resources

About

Scrape Google News with HasData’s API. Choose topics, set keywords, filter by country and language, sort results, preview them in-app, and export as JSON or CSV. Perfect for analysts, researchers, and developers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages