我们提供融合门户系统招投标所需全套资料,包括融合系统介绍PPT、融合门户系统产品解决方案、
融合门户系统产品技术参数,以及对应的标书参考文件,详请联系客服。
import feedparser
def fetch_news(rss_urls):
news_dict = {}
for url in rss_urls:
feed = feedparser.parse(url)
category = feed['feed']['title']
if category not in news_dict:
news_dict[category] = []
for entry in feed.entries:
news_dict[category].append({
'title': entry.title,
'link': entry.link,
'summary': entry.summary
})
return news_dict
rss_sources = [
"http://rss.example.com/tech",
"http://rss.example.com/sports"
]
all_news = fetch_news(rss_sources)
print(all_news)