Grss.FeedParser

g GObject.Object GObject.Object Grss.FeedParser Grss.FeedParser GObject.Object->Grss.FeedParser

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

parse (feed, doc)

parse_channel (feed, doc)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Grss.FeedParser(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Grss.FeedParserClass

classmethod new()
Returns:

a new Grss.FeedParser.

Return type:

Grss.FeedParser

Allocates a new Grss.FeedParser.

parse(feed, doc)
Parameters:
Raises:

GLib.Error

Returns:

a list of Grss.FeedItem, to be freed when no longer in use, or None if anerror occours and error is set.

Return type:

[Grss.FeedItem]

Parses the given XML doc, belonging to the given feed, to obtain a list of Grss.FeedItem.

parse_channel(feed, doc)
Parameters:
Raises:

GLib.Error

Parses the given XML doc, belonging to the given feed.

Similar to Grss.FeedParser.parse(), but Grss.FeedParser.parse_channel() skips parsing of items into the document.