Google news rss parameter num 100 returning only 30 results

强颜欢笑 提交于 2019-12-24 00:59:14

问题


The link which i used to fetch results form google news

https://news.google.co.in/news?cf=all&hl=en&pz=1&ned=in&q=euro2016&csed=in&csep=false&num=100&sort=rated&output=rss

it is working fine but there is problem in number of results that i get. the "num" parameter is returning maximum 30 results irrespective of the number when the num parameter exceeds 30

Has google changed the number of results that it gives. If yes is there any documentation of it

Thanks in advance


回答1:


According to the source:

num=NUM retrieves NUM results. Default: 10. Possible values: if q present [1,100], otherwise [1, 30]

However, I tried with no success retreives the max limit results.

I think that due to Google News API is deprecated, some parameters are no longer functional.

Check also this answer on Stack Overflow and its comments for get even more info about Google News API.



来源:https://stackoverflow.com/questions/38072532/google-news-rss-parameter-num-100-returning-only-30-results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!