From df564a4806ac594257fbb216079b993f999a6c0f Mon Sep 17 00:00:00 2001 From: Iron Blogger Bot Date: Wed, 18 Sep 2013 12:15:49 +0200 Subject: [PATCH] logging improvements --- import-feeds.py | 1 + scan-feeds.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/import-feeds.py b/import-feeds.py index 3506e22..d6c2379 100755 --- a/import-feeds.py +++ b/import-feeds.py @@ -9,6 +9,7 @@ with open('bloggers.yml') as f: users = yaml.safe_load(f.read()) def fetch_links(url): + print >>sys.stderr, "Looking for feeds in %s" % (url,) tree = html.fromstring(urllib2.urlopen(url).read()) links = tree.xpath( '//link[@rel="alternate"][contains(@type, "rss") or ' + diff --git a/scan-feeds.py b/scan-feeds.py index d707f02..c9ea057 100755 --- a/scan-feeds.py +++ b/scan-feeds.py @@ -40,8 +40,6 @@ def parse_feeds(weeks, uri): feedparser.USER_AGENT = "IronBloggerBot/0.1 +http://ironblogger.de/" feed = feedparser.parse(uri) - print >>sys.stderr, "Parsing: %s" % uri - if not feed.entries: print >>sys.stderr, "WARN: no entries for ", uri for post in feed.entries: