MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / articles

Method articles

RSS_Manager/utils.py:75–85  ·  view source on GitHub ↗

list all the articles of Feed

(self)

Source from the content-addressed store, hash-verified

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}"

Callers 1

get_articles_for_feedFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected