go + rss = gss.
gss is client to parse RSS Feed (rdf, rss, atom...).
- Atom
- RSS1.0
- RSS2.0
- Content module only encode (rss2)
- Dublin Core module (rss1, rss2)
- Media module only part element (rss2)
$ go get github.com/naoto0822/gss/gss
import "github.com/naoto0822/gss/gss"
Construct a new gss client, then use the Parse
on the client to parse RSS feed.
Parse
returned gss.Feed
.
url := "https://jp.techcrunch.com/feed/"
client := gss.NewClient()
feed, err := client.Parse(url)
gss.Feed
is original and universal feed.
refer GoDoc for details.
TODO: rewrite following table style...
feed
feed.RSSType
feed.Title
feed.Links
feed.Description
feed.Image
feed.CopyRight
feed.PubDate
feed.Updated
feed.Authors
feed.Categories
feed.Items
image
image.Title
image.URL
image.Link
image.Width
image.Height
item
item.ID
item.Title
item.Links
item.Body
item.PubDate
item.Updated
item.Authors
item.Categories
author
author.Name
author.Email
- [☓] support Content module only encode
- [☓] support Dublin Core module
- [☓] support Media module only part element
This library is distributed under the MIT-style license found in the LICENSE file.