Grss.FeedParser¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Grss.FeedParser(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
Grss.FeedParser
.- Return type:
Allocates a new
Grss.FeedParser
.
- parse(feed, doc)¶
- Parameters:
feed (
Grss.FeedChannel
) – aGrss.FeedChannel
to be parsed.doc (
libxml2.DocPtr
) – XML document extracted from the contents of the feed, which must already been fetched.
- Raises:
- Returns:
a list of
Grss.FeedItem
, to be freed when no longer in use, orNone
if anerror occours and error is set.- Return type:
Parses the given XML doc, belonging to the given feed, to obtain a list of
Grss.FeedItem
.
- parse_channel(feed, doc)¶
- Parameters:
feed (
Grss.FeedChannel
) – aGrss.FeedChannel
to be parsed.doc (
libxml2.DocPtr
) – XML document extracted from the contents of the feed, which must already been fetched.
- Raises:
Parses the given XML doc, belonging to the given feed.
Similar to
Grss.FeedParser.parse
(), butGrss.FeedParser.parse_channel
() skips parsing of items into the document.