From: Ben Lovell Date: 2009-04-04T20:19:30+09:00 Subject: Re: how come i cant grab all rss items from a feed --001636c598d6ccba120466b8d8a9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I'd suggest you check which headers your browser is sending. Particularly the Last-Modified and Etag. Replicate those and you will see the same amount of items. Ben On Sat, Apr 4, 2009 at 11:28 AM, Adam Akhtar wrote: > 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/. > > --001636c598d6ccba120466b8d8a9--