Go to file
jim teeuwen eb15b6a3ef Made Feed.CanUpdate() public. This returns true if all cache timeout values have expired and a fresh remote update can be performed. Fixed bug where repeated calls to feed.Fetch() creates duplicate Channels instead of generating a fresh list. Did some minor code householding to replace manual slice appends with the builtin append() function. 2010-12-17 21:57:48 +01:00
src Made Feed.CanUpdate() public. This returns true if all cache timeout values have expired and a fresh remote update can be performed. Fixed bug where repeated calls to feed.Fetch() creates duplicate Channels instead of generating a fresh list. Did some minor code householding to replace manual slice appends with the builtin append() function. 2010-12-17 21:57:48 +01:00
LICENSE Added LICENSE file. Code falls under a 1-Clause BSD license, of which its contents can be found in said LICENSE file. 2010-12-15 19:04:12 +01:00
README Added LICENSE file. Code falls under a 1-Clause BSD license, of which its contents can be found in said LICENSE file. 2010-12-15 19:04:12 +01:00

README

 Author: jim teeuwen <jimteeuwen@gmail.com>
 Dependencies: go-pkg-xmlx ( http://github.com/jteeuwen/go-pkg-xmlx )

 This package allows us to fetch Rss and Atom feeds from the internet.
 They are parsed into an object tree which is a hybrid of both the RSS and Atom
 standards.

 Supported feeds are:
 	- Rss v0.91, 0.92 and 2.0
 	- Atom 1.0

 The package allows us to maintain cache timeout management. This prevents us
 from querying the servers for feed updates too often and risk ip bans. Apart 
 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
 tried to create as many shared fields as possible but some of them simply do
 not occur in either the RSS or Atom spec.

================================================================================
 LICENSE
================================================================================

All code is subject to a 1-clause BSD license. See the LICENSE file for its
contents.