
Google News Scraper
Pricing
$20.00/month + usage

Google News Scraper
Gets featured articles from Google News with title, link, source, publication date and image.
2.0 (2)
Pricing
$20.00/month + usage
31
Monthly users
127
Runs succeeded
>99%
Response time
26 days
Last modified
2 months ago
scraper returning wrong links
Closed
The scraper is returning wrong links "https://news.google.com/rss/articles/CBMib2h0dHBzOi8vd3d3LnBybmV3c3dpcmUuY29tL25ld3MtcmVsZWFzZXMvYW1lcmljYW4tY2VudHVyeS1sYXVuY2hlcy1jYWxpZm9ybmlhLW11bmljaXBhbC1ib25kLWV0Zi0zMDIyMDAyMzcuaHRtbNIBAA?oc=5&hl=en-IN&gl=IN&ceid=IN:en"
starting with "https://news.google.com/"
on clicking this link you get redirected to the correct website. This is breaking all my flows, this has been happening since last week, I was getting correct links before that
dynamic_harvest
After
dynamic_harvest
Before

Kristýna Lhoťanová (lhotanova)
Hello, thank you for reporting this bug and I'm sorry for a late reply. I'm currently reworking the Actor to address this issue as well as other bugs. I'll keep you updated about the progress here.

Kristýna Lhoťanová (lhotanova)
Hi again, there has been a recent change of Google News API that caused this bug. The Actor has been fixed today, see the example run: https://console.apify.com/view/runs/oqDhZjFezcTVZHdAi
The Actor first extracts the links in the https://news.google.com/
format from the API, then it decodes them to the actual target links and opens the target pages to extract preview images. It needs to be done this way because the Actor doesn't use a web browser that could resolve the redirects automatically. It uses HTTP requests only to keep the expenses low.
Google News has recently made the encoding of target URLs more difficult to deal with, so the Actor now uses rather a hacky way to decode the links. Hopefully the Google News API will be stable now and won't break the Actor's flow again.
If you encounter any other issues, please report them using new issue threads 🙏
boothdev
Hi, we seems to be getting a lot of links like that causing it to show a good amount of failures on every run.
boothdev
Any update on this as we are seeing quite a few links come up as https://news.google.com/_/DotsSplashUi/data/batchexecute?rpcids=Fbv4je
datapowa1
I am also having trouble with article urls being "https://news.google.com/rss/articles/..." rather than the actual aricle url. Could this be fixed ?

Kristýna Lhoťanová (lhotanova)
Hi, could you please share example runs where this issue occurred?
I did a test run with 1800 results and didn't find any https://news.google.com
links stored in the link
output field (see screenshot). Knowing which query triggers the issue would help me a lot debugging this.
It's also possible it was fixed on Google News' side in the meantime but I need to redo the problematic runs to validate it.
Regarding the URL https://news.google.com/_/DotsSplashUi/data/batchexecute?rpcids=Fbv4je
, the Actor uses it to decode links from the https://news.google.com/
format.
I have another idea what could go wrong - did you set the input filed extractImages
to true
or false
? Originally, non-RSS article links were served by the RSS API, so the Actor was able to scrape them without opening article pages. Crawling articles pages could be switched on by extractImages: true
, because images were extracted from these article pages (they still are). After the latest change, non-RSS links are no longer available in the RSS API. It became necessary to crawl article pages to get decoded article links. Therefor, you need to use extractImages: true
to get non-RSS article links.
I'm sorry for this confusion, I didn't realize that the function of extractImages
changed into a switch between (not) getting decoded article links. I'll add a new field fetchArticleDetails
instead and possibly deprecate extractImages

Kristýna Lhoťanová (lhotanova)
So, fetchArticleDetails
input field was added and extractImages
deprecated. extractImages
can still be used in the JSON input editor or when calling the Actor via API but it is no longer displayed in the Manual input editor.
fetchArticleDetails: true
activates additional requests to article pages to decode the links from RSS format and also extract images from the page's metadata.fetchArticleDetails: false
disables requests to article pages so the links are stored in the RSS formathttps://news.google.com/rss/articles/
and no images are scraped. The runs with this option disabled are much faster and cheaper though, thanks to saving a lot of extra requests.
Please let me know if you still struggle to scrape decoded article URLs with fetchArticleDetails
option enabled.
Thank you!
datapowa1
Hi,
With the option "fetchArticleDetails: true", "link" is pointing to the direct article and not the rss url.
Thank you for the fix.

Kristýna Lhoťanová (lhotanova)
Thank you for your feedback, I'm glad it’s working for you now!
Pricing
Pricing model
RentalTo use this Actor, you have to pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage.
Free trial
7 days
Price
$20.00