2009-11-23 12:46:12 +00:00
|
|
|
Author: jim teeuwen <jimteeuwen@gmail.com>
|
2009-11-23 12:52:53 +00:00
|
|
|
Dependencies: go-pkg-xmlx ( http://github.com/jteeuwen/go-pkg-xmlx )
|
2009-11-23 12:46:12 +00:00
|
|
|
|
|
|
|
This package allows us to fetch Rss and Atom feeds from the internet.
|
2009-11-23 12:49:11 +00:00
|
|
|
They are parsed into an object tree which is a hybrid of both the RSS and Atom
|
2009-11-23 12:46:12 +00:00
|
|
|
standards.
|
|
|
|
|
|
|
|
Supported feeds are:
|
2009-11-24 12:39:42 +00:00
|
|
|
- Rss v0.91, 0.92 and 2.0
|
2009-11-23 12:46:12 +00:00
|
|
|
- Atom 1.0
|
|
|
|
|
|
|
|
The package allows us to maintain cache timeout management. This prevents us
|
2009-11-23 12:50:13 +00:00
|
|
|
from querying the servers for feed updates too often and risk ip bams. Apart
|
2009-11-23 12:46:12 +00:00
|
|
|
from setting a cache timeout manually, the package also optionally adheres to
|
|
|
|
the TTL, SkipDays and SkipHours values specied in the feeds themselves.
|
|
|
|
|
|
|
|
Note that the TTL, SkipDays and SkipHour fields are only part of the RSS spec.
|
|
|
|
For Atom feeds, we use the CacheTimeout in the Feed struct.
|
|
|
|
|
|
|
|
Because the object structure is a hybrid between both RSS and Atom specs, not
|
|
|
|
all fields will be filled when requesting either an RSS or Atom feed. I have
|
2009-11-23 12:50:13 +00:00
|
|
|
tried to create as many shared fields as possible but some of them simply do
|
2009-11-23 12:46:12 +00:00
|
|
|
not occur in either the RSS or Atom spec.
|