]> projects.mako.cc - iron-blogger/blobdiff - scan-feeds.py
scan-feeds: Warn if we can't find someone's entries.
[iron-blogger] / scan-feeds.py
index bc82608b1e21c94a7c29439bc5f56a4912c994cd..9801762b242691d2a66e56216a2e97d01624a9a4 100755 (executable)
@@ -2,6 +2,7 @@
 import yaml
 import feedparser
 import datetime
+import sys
 from dateutil.parser import parse
 import dateutil.tz as tz
 
@@ -25,6 +26,8 @@ def get_link(post):
 
 def parse_feeds(weeks, uri):
     feed = feedparser.parse(uri)
+    if not feed.entries:
+        print >>sys.stderr, "WARN: no entries for ", uri
     for post in feed.entries:
         date = parse_published(get_date(post))
 

Benjamin Mako Hill || Want to submit a patch?