asphalt.feedreader.metadata

class asphalt.feedreader.metadata.FeedEntry(id: str, *, title: str = None, summary: str = None, categories: typing.Iterable[str] = (), link: str = None, published: datetime.datetime = None, enclosure_url: str = None, enclosure_length: int = None, enclosure_type: str = None)

Represents a news item in a syndication feed.

The following parameters are also available as instance variables:

Parameters:
  • id (str) – globally unique identifier of the entry
  • title (Optional[str]) – short title of the entry
  • summary (Optional[str]) – a short description of the entry
  • categories (Iterable[str]) – a tuple of category names for the entry
  • link (Optional[str]) – a URL that links to the relevant web page
  • published (Optional[datetime]) – a timezone aware date/time when the entry was published
  • enclosure_url (Optional[str]) – URL to a related media object
  • enclosure_length (Optional[int]) – size (in bytes) of the related media object
  • enclosure_type (Optional[str]) – MIME type of the related media object
class asphalt.feedreader.metadata.FeedMetadata

Contains metadata for a syndication feed.

Variables:
  • icon (Optional[str]) – URL pointing to the image representing this feed
  • title (Optional[str]) – title of this feed
  • link (Optional[str]) – link to the HTML website related to this feed
  • generator (Optional[str]) – name of the software used to generate this feed
  • copyright (Optional[str]) – copyright statement
  • updated (Optional[datetime]) – the last time this feed was updated