Access feed metadata and entries in the `FastFeedParserDict`
mainThe parser returns a FastFeedParserDict object containing two main sections: feed (global metadata) and entries (a list of individual items).
Accessing Global Feed Information
Use the .feed attribute to access metadata like title, link, and description:
print(myfeed.feed.title)
print(myfeed.feed.link)Accessing Entry Information
Iterate through .entries to access item-specific data. Common fields include:
title: Entry titlelink: Entry URLdescription: Entry description/summarypublished: Publication date (standardized to UTC ISO 8601)author: Author informationcontent: Full contentmedia_content: Media attachmentsenclosures: Attached files
import fastfeedparser
myfeed = fastfeedparser.parse('https://example.com/feed.xml')
# Access feed global information
print(myfeed.feed.title)
print(myfeed.feed.link)
# Access feed entries
for entry in myfeed.entries:
print(entry.title)
print(entry.link)
print(entry.published)