From: Adam Akhtar Date: 2009-04-04T19:28:25+09:00 Subject: how come i cant grab all rss items from a feed When i try and access the bbc feed it will only return the latest 40 results. However if i use the same feed in google reader, it can return a lot more. Why is this and how do i modify the code below so that i can return more results. Heres some code require 'rss/1.0' require 'rss/2.0' require 'open-uri' require 'rss/parser' source = "http://newsrss.bbc.co.uk/rss/newsonline_world_edition/uk_news/rss.xml" # url or local file content = "" # raw content of rss feed will be loaded here open(source) do |s| content = s.read end rss = RSS::Parser.parse(content, false) (rss.items.length == 40ish) -- Posted via http://www.ruby-forum.com/.