Posted by signal on Wed 16 Jul 03:29 (modification of post by signal view diff)
report abuse | View followups from Free Word Order | download | new post
- import feedparser
- import re
- import time
- already_seen = []
- links = {}
- count = 0
- while True:
- entries = feedparser.parse("http://xml.metafilter.com/rss.xml").entries
- entries.reverse()
- for e in entries:
- if e.title not in already_seen:
- already_seen.append(e.title)
- count += 1
- summary = re.compile(r'<[^>]*>|&\w*;|').sub('',e.summary)
- summary = re.compile(r' ').sub(' ', summary)
- print "#",count, "@", e.updated
- print e.title.encode("UTF-8")
- print summary.encode("UTF-8")
- print "---"
- print
- time.sleep(600)
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.