1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/usr/bin/env python3 from dataclasses import dataclass from datetime import datetime @dataclass class RSSItem: title: str url: str content: str date: datetime enclosures: list[str] guid: str @dataclass class RSSFeed: title: str url: str description: str content: list[RSSItem]