Since I couldn't tell from your question if you were building an RSS feed that lists yoru site's hot topics or an RSS reader that determines hot topics in other sites, i'll answer both:
There are many ways to interpret what a hot topics is. In this answer, consider a hot_topic to be a news post that has the most views (you could build your own approach to popularity and make it more complex, such as views per minute, but that's an exercise I'll leave for you):
If you're trying to build an RSS feed that lists the most hot topics in your site, you can:
- 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.
This is a simple way to present an RSS with the most views.
Now, if you're trying to build your own RSS READER that reads popular posts from other websites or tries to determine popularity across different websites, then you can either:
- 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
I hope this helps.