13 lines
353 B
Python
13 lines
353 B
Python
|
import feedparser
|
||
|
|
||
|
feed_url = "https://security.tencent.com/index.php/feed/blog/0"
|
||
|
feed = feedparser.parse(feed_url)
|
||
|
|
||
|
for entry in feed.entries:
|
||
|
print(entry.title)
|
||
|
print(entry.link)
|
||
|
print(entry.id)
|
||
|
print(entry.summary)
|
||
|
print(entry.id)
|
||
|
# 打印所有属性,找出正确的日期字段名
|
||
|
# print(entry.keys())
|