print("▶ Downloading Articles from News feeds...")
Looping / For with several variables
# Loop through News Feeds, and save the Articles
for topic_name, rss_link in news_feed_links.items():
new_topic = Topic(topic_name)
feed = feedparser.parse(rss_link)
print("--------")
print(f"Topic: {topic_name} ({len(feed.entries)} articles)")
Append items to a Collection
new_topic.articles.append(new_article)
Limiting a Loop
for article in topic.articles[:main_feed_article_limit]:
html_output += f'''
<a href="{article.url}" class="list-group-item">
{article.title}
</a>
'''