Un script simple qui vérifie simplement l'état de mise à jour des blogs et autres. Comme d'habitude, entrez http: // URL RSS Untara avec raw_input.
feed.py
#!/user/bin/env python
# -*- coding: utf-8 -*-
import feedparser
rssurl = raw_input("Feed URL: ")
feed = feedparser.parse(rssurl)
for entry in feed["entries"]:
title = entry["title"]
link = entry["link"]
time = entry["updated"]
print "Title: ", title
print "Link: ", link
print "Time: ", time
Recommended Posts