-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNVD-RSS.py
More file actions
20 lines (16 loc) · 858 Bytes
/
NVD-RSS.py
File metadata and controls
20 lines (16 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# National Vulnerability Database RSS Feed Reader
# Import Libraries
import feedparser
def feedParse(feed):
# For every <item> in [feed], print feed title, link, description, and date
for item in feed.entries:
print('\n========================================================================================================================================================')
print('Title: ' + item.title)
print('Updated: ' + item.updated)
print('Summary: ' + item.summary)
print('Link: ' + item.link)
print('========================================================================================================================================================')
def main():
feedParse(feedparser.parse("https://nvd.nist.gov/feeds/xml/cve/misc/nvd-rss.xml"))
if __name__ == "__main__":
main()