A
Adam Akhtar
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:
arser.parse(content, false)
(rss.items.length == 40ish)
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:
(rss.items.length == 40ish)