feedparser

package module
v0.0.0-...-3f7db70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2015 License: Unlicense Imports: 6 Imported by: 0

README

feedparser

Go package for parsing RSS and Atom feeds

Installation

Simply run

go get github.com/iand/feedparser

Documentation is at http://go.pkgdoc.org/github.com/iand/feedparser

Authors

Contributors

Contributing

  • Do submit your changes as a pull request
  • Do your best to adhere to the existing coding conventions and idioms.
  • Do run go fmt on the code before committing
  • Do feel free to add yourself to the CREDITS file and the corresponding Contributors list in the the README.md. Alphabetical order applies.
  • Don't touch the AUTHORS file. An existing author will add you if your contributions are significant enough.
  • Do note that in order for any non-trivial changes to be merged (as a rule of thumb, additions larger than about 15 lines of code), an explicit Public Domain Dedication needs to be on record from you. Please include a copy of the statement found in the WAIVER file with your pull request

License

This is free and unencumbered software released into the public domain. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

Documentation

Overview

Simple parser for RSS and Atom feeds

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	Title    string
	Subtitle string
	Link     string
	Items    []*FeedItem
}

func NewFeed

func NewFeed(r io.Reader) (*Feed, error)

type FeedItem

type FeedItem struct {
	Id          string
	Title       string
	Description string
	Content     string
	Link        string
	Author      string
	Image       string
	ImageSource string
	When        time.Time
	Enclosure   string
	Media       []Media
}

type Media

type Media struct {
	Url  string
	Size string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL