list all the articles of Feed
(self)
| 73 | self.tag: str | None = tag |
| 74 | |
| 75 | def articles(self) -> List[Dict[str, str]]: |
| 76 | """list all the articles of Feed""" |
| 77 | articles = [] |
| 78 | for entry in self.feed_parse.entries: |
| 79 | article = { |
| 80 | "title": entry.title, |
| 81 | "link": entry.link, |
| 82 | "published_parsed": datetime(*entry.published_parsed[:6]), |
| 83 | } |
| 84 | articles.append(article) |
| 85 | return articles |
| 86 | |
| 87 | def __str__(self) -> str: |
| 88 | return f"{self.title} -> {self.link}" |
no outgoing calls
no test coverage detected