#!/usr/bin/python # Pretty-print the output from feedparser. # (Old versions of feedparser used to do this if you ran the module as a # script; this is remarkably useful for debugging.) # Adam Sampson import sys, feedparser, pprint for feed in sys.argv[1:]: pprint.pprint(feedparser.parse(feed))