Android的RSS解析 - 谷歌新闻RSS源是不是"最近"而不是搜索结果。如何解决? [英] Android RSS parsing - Google News RSS feeds are not "most recent" as opposed to search results. How to solve?

查看:189
本文介绍了Android的RSS解析 - 谷歌新闻RSS源是不是"最近"而不是搜索结果。如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1)检查这个消息输出链接:结果
www.google.com/search?q=example&num=10&hl=en&gl=us&authuser=0&tbm=nws&source=lnt&sbd:1&sa=X&ved=0CBUQpwVqFQoTCJi2r5XYl8gCFYeNDQodbDQF1g&biw=1242&bih=599&dpr=1.1

1) Check this news output link:
www.google.com/search?q=example&num=10&hl=en&gl=us&authuser=0&tbm=nws&source=lnt&sbd:1&sa=X&ved=0CBUQpwVqFQoTCJi2r5XYl8gCFYeNDQodbDQF1g&biw=1242&bih=599&dpr=1.1

使用的参数是TBS = SBD:1,&安培; TBM = NWS&安培;源= LNT - 这应该给你的新闻时间排序列表。最近在顶部。 (按日期作为参数排序 - SBD:1)。但是,当你点击它,它可以追溯到由某种原因相关性排序。
 请点击这里查询网址标签的含义:的https://stenevang.word$p$pss.com/2013/02/22/google-search-url-request-parameters/

The parameters used are tbs=sbd:1, &tbm=nws&source=lnt - This SHOULD give you a time-sorted list of news. The most recent at the top. (Sorted by date as the parameter - sbd:1). However, when you click it, it goes back to sorted by relevance for some reason. Please check the meaning of URL tags here: https://stenevang.wordpress.com/2013/02/22/google-search-url-request-parameters/

2)现在,检查相应的RSS链接: news.google.com/news/feeds?num=10&q=example&tbs=sbd:1&tbm=nws&source=lnt&output=rss

2) Now, check the corresponding RSS link: news.google.com/news/feeds?num=10&q=example&tbs=sbd:1&tbm=nws&source=lnt&output=rss

在浏览器标题标签(在上面的链接)搜索。你会注意到,在新闻报道是基于什么谷歌所谓的相关性重新排序(即使SBD:指定1)。最近是不是在顶部。

有谁知道为什么出现这种情况?有没有办法解决这个问题的方法吗?我想在对RSS页面顶部的最新的新闻标题。如何实现这一点?!

先谢谢了。

推荐答案

奇怪!在我的浏览器,添加和放大器; TBS = SBD:RSS提要的URL 1是完全排序的项目。没有它,会出现问题!甚至当我把民到30的例子!

Strange! In my browser, adding &tbs=sbd:1 in the RSS feed's URL is ordering the items perfectly. Without it, problems occurs! Even when I push "num" to "30" for example!

<一个href=\"http://news.google.com/news/feeds?num=30&q=example&tbs=sbd:1&tbm=nws&source=lnt&output=rss\" rel=\"nofollow\">http://news.google.com/news/feeds?num=30&q=example&tbs=sbd:1&tbm=nws&source=lnt&output=rss

这篇关于Android的RSS解析 - 谷歌新闻RSS源是不是&QUOT;最近&QUOT;而不是搜索结果。如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆