> ## Content Index
> Fetch the complete content index at: https://serpapi.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Scrape Google News Results
- URL: https://serpapi.com/blog/how-to-scrape-google-news/
- Published: 2023-10-13T03:27:08.000Z
- Updated: 2023-10-18T15:02:58.000Z
- Author: Andy L

Google News is a special news site that aggregates headlines from news sources worldwide.

Ran by algorithms, Google News contains real-time information. Google News covers a wide range of topics and is always updated

![](https://lh6.googleusercontent.com/y68aCBVAr-6mzjh0b-UxuP_uZa7Zr3GnEX9tk9RaX3-KElyJE7u51MYrdi1Sl3SQldTnrJOQs25h9TZ0ZS8Om_MM5oDU1aEYcqfpJWwAiR7-Pn7V-U2EFzlx83HvDbi_NS5ltZ7VqvqTgbizE6688A4)

.

Scraping Google News results can provide you with valuable data and insights, allow you to access the latest news articles. More than that, you can scrape by topics, keywords or sources.

Analyzing scraped news data can give you ideas of trends, sentiments and events across various industries and regions.

You can also monitor your competitors covered in the news, gain more insights into market movements and make better decisions for your business.

Scraping Google News is challenging for some reasons: Anti-Scraping Measures, Dynamic website, HTML structure changes, Data volume, CAPTCHAs and challenges,...

Nowadays, every company prefers to use SERP API providers rather than building the scraper from scratch. [SerpApi](https://serpapi.com/) is one of the best SERP API providers which supports scraping

Google News Results without headache.

![](https://lh5.googleusercontent.com/RKj7Da6l-0QqZoTvzFSXStvBAac3zHxGulNWVPg1U2rt0542AcQA2pPLncYscUL4o39DmoQLuxxf813Jomb8_-5vrOmSnM0ulnEuoFq_nYPGVvS9LlU5nEELYybM3FdLGJpVdm3FmOAewAlwlKg7LNc)

###   
Setting up a SerpApi account

[SerpApi](https://serpapi.com/) offers a free plan for newly created accounts. Head to the [sign-up](https://serpapi.com/users/sign%5Fup?plan=free) page to register an account and complete your first search with our [interactive playground](https://serpapi.com/playground?engine=google&tbm=nws). When you want to do more searches with us, please visit the [pricing page](https://serpapi.com/pricing).

Once you are familiar with all results, you can utilize SERP APIs using your [API Key](https://serpapi.com/manage-api-key).

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2023/10/Screenshot-2023-10-10-at-20.35.01.png)

### Scrape your first Google News results with SerpApi

Head to the Google News Results from the [documentation](https://serpapi.com/news-results) on [SerpApi](https://serpapi.com/) for details.

In this tutorial, we will scrape and extract the organic results for all "iphone" news. The data contains: "position", "title", "link", "date", "source", "description", "thumbnail", and more. You can also scrape more information with [SerpApi](https://serpapi.com/).

First, you need to install the [SerpApi client library](https://github.com/serpapi/google-search-results-python?ref=serpapi.com).

```python
pip install google-search-results
```

Set up the[ SerpApi](https://serpapi.com/?ref=serpapi.com)[ credentials](https://serpapi.com/manage-api-key?ref=serpapi.com) and search.

```python
from serpapi import GoogleSearch
import os, json

params = {
    'api_key': 'YOUR_API_KEY',         # your serpapi api
    'engine': 'google',               # SerpApi search engine	
    'tbm': 'nws',                     # Google News engine 
    'q': 'iphone'
}

```

To retrieve Google News Results for a given search query, you can use the following code:

```python
results = GoogleSearch(params).get_dict()['news_results']
```

You can store Google News Results JSON data in databases or export them to a CSV file.

```python
import csv

header = ['position', 'title', 'link', 'date', 'source', 'description', 'thumbnail']

with open('google_news.csv', 'w', encoding='UTF8', newline='') as f:
    writer = csv.writer(f)

    writer.writerow(header)

    for item in results:
        print(item)
        writer.writerow([item.get('position'), item.get('title'), item.get('link'), item.get('date'), item.get('source'), item.get('description'), item.get('thumbnail')])

```

This example is using Python, you can use your favorite programming languages likes Ruby, NodeJS, Java, PHP....

If you have any questions, please feel free to [contact me](mailto:andy@serpapi.com).