7
current_mirrors = set()
8
for line in open(sys.argv[1], "r"):
9
current_mirrors.add(line.strip())
12
outfile = open(sys.argv[1],"a")
13
d = feedparser.parse("https://launchpad.net/ubuntu/+archivemirrors-rss")
16
#pp = pprint.PrettyPrinter(indent=4)
19
for entry in d.entries:
20
for link in entry.links:
21
if not link.href in current_mirrors:
22
outfile.write(link.href+"\n")