English 中文(简体)
RSS读者中的主要故事[闭门]
原标题:Top stories in RSS reader [closed]

问我们 提议或找到一种工具、图书馆或偏袒场外资源的问题,在Stack Overflow,因为它们往往吸引有意见的答复和垃圾邮件。 相反, 问题以及迄今为止为解决这一问题所做的工作。

Closed 9 years ago.

例如,在RSS馈电总汇新闻网中,你知道哪些是最突出的故事或热的话题?

请解释?

我是新到的。 我想在鲁比拉建造一个有关铁路的RSS阅读器。 你们能否向我建议一些好的辅导或联系?

增 编

Gautam

最佳回答

自2006年以来 我无法回答你提出的问题,即你是否正在建造一个包含奥约鲁热点专题的RSS供暖点,还是确定其他地点热点主题的RSS读物,即:

有许多方法解释热点议题。 在这项答复中,认为热点是一个具有最广泛看法的新闻站(你可以建立你自己对民众的态度,使其更加复杂,例如每分钟提出意见,但我给你留下一席钟):

如果你重新尝试建立<>RS,把最热的专题列入your /strong>,你可以:

  • Add a column to your model that saves how many views it has. You could track how many views it has, for example, by incrementing the value (post.views += 1) each time the post is watched and then saving it (post.save).
  • After creating an action in your controller for hot_topics, you simply order your posts by views.

这是提出最有意见的RSS的简单办法。


现在,如果你重新尝试建设自己的网站RSS READER,读自其他网站的普通职位,或试图确定不同网站的广度,那么你可以:

  • Download the RSS feed hot_topics from that specific site if it has any (such as Newsnow)
  • Crawl different websites and compare which are popular on both and sort them to your reader

我希望这一帮助。

问题回答

在热点专题、热故事等方面,“头盔”通常是一种随时间推测的民众。 您可能希望对每种价值适用一些调子,但请简单明了,并说其“条码”在中总读/年龄。

大约在1分钟里读到200次,比15分钟时的2000年时点更热。

如何落实这一点是一个不同的问题。 如果你不把所有数据引出,就无法真正与数据库做些事情,那么,最好将统计数据(例如其主要关键、出版时间以及总读数)留在当地的一个快速存取库(memcache等人)中,以便你能够根据你需要的数据和5-10分钟的切身取出。

你也可以通过将排名限制在某个时期内发布的新闻项目(取决于你的新闻产出)来改进处理时间。





相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...