I tried using the Google channel for the JSON converter as follows: http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http%3A%2F%2Fnews.google.com%2Fnews%3Foutput% 3Drss% 26num% 3D8
The only problem is that only a maximum of 4 results can be returned. If I go directly to http://news.google.com/news?output=rss&num=8 , then there will be 8 results. But if I convert it to JSON, there are only 4.
Is there any other way to get Google News results in JSON format?
&num=8 should be part of the download request, not url encoded.
&num=8
Like this...
http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=8&q=http%3A%2F%2Fnews.google.com%2Fnews%3Foutput%3Drss
you can use rsz parameter
RSZ = 4
This argument supplies an integer from 1-8, indicating the number of results returned to the page. eg.
$url="https://ajax.googleapis.com/ajax/services/search/news?v=1.0&rsz=8&q=Tarun%20Gupta";
Source: https://habr.com/ru/post/907709/More articles:How to make ToString () enum in C ++? - c ++Crash while creating ViewController from storyboard - objective-cjQuery trigger onChange - functionHow to add a module to ipython autocomplete? - pythonHow to use memory stream instead of files when rendering Direct2D images through SharpDX? - asp.netCan someone explain this LinkDemand warning when subclassing a Windows control? - securityJava I / O vs NIO: quick test comparison - javaCan't start a Java program from Eclipse? - javaIs it deterministically checked whether a large number is simple or compound? - c ++What does the BEQ statement do? - assemblyAll Articles