asphalt.feedreader.api
¶
-
class
asphalt.feedreader.api.
FeedReader
¶ Bases:
object
Interface for feed readers.
Variables: - entry_discovered (Signal[EntryEvent]) – a signal dispatched when a resource has been published in this context
- metadata_changed (Signal[MetadataEvent]) – a signal dispatched when the feed metadata has been changed
- url (str) – the feed URL
-
classmethod
can_parse
(document, content_type)¶ Determine if this reader class is suitable for parsing the given document as a feed.
This method is only used for autodetection of feed type by
create_feed()
(ie. when the feed parser has not been specified). Autodetection is skipped when the feed parser has been explicitly given.Parameters: Return type: Returns: the reason why this class cannot parse the given document, or
None
if it can parse it
-
metadata
¶ Return the feed’s metadata.
Return type: FeedMetadata