search news by keyword using Google CSE

瘦欲@ 提交于 2019-12-11 07:18:36

问题


I want to search results from "Google News" via "Google Custom Search Engine Api (CSE)" based on location/country and keyword.

I tried using it by setting up a CSE which only searches inside the site "news.google.com" but then it only returns old news article clippings. Not sure how to grab the recent news articles. Also, i noticed that if we set schema type NewsArticle, its not accurate as not all news sites having this schema type of page.

I knew that there is a workaround to use RSS feeds for getting google news and it returns results as required. Example - https://news.google.com/news/feeds?hl=en&q=corruption&ie=utf-8&num=10&output=rss . But, I afraid this is not a correct and recommended way to get go with.

Will appreciate if anyone could advice right setting in CSE or other recommended solution.

来源:https://stackoverflow.com/questions/28824389/search-news-by-keyword-using-google-cse

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