user-agent

This commit is contained in:
Iron Blogger Bot 2013-09-18 11:49:34 +02:00
parent ffb548cb39
commit 94837624f1

View file

@ -37,6 +37,7 @@ def get_link(post):
return post.link
def parse_feeds(weeks, uri):
feedparser.USER_AGENT = "IronBloggerBot/0.1 +http://ironblogger.de/"
feed = feedparser.parse(uri)
print >>sys.stderr, "Parsing: %s" % uri