Make import-feeds quieter.
[iron-blogger] / import-feeds.py
old mode 100644 (file)
new mode 100755 (executable)
index fa370c4..9d4f9bb
@@ -1,3 +1,4 @@
+#!/usr/bin/python
 from lxml import html
 import yaml
 import urllib2
@@ -20,17 +21,14 @@ def fetch_links(url):
     return links[0].attrib['href']
 
 for (name, u) in users.items():
-    print "[%s]" % name
     for e in u['links']:
         (title, url) = e[0:2]
-        print " - %s:" % title.strip()
         e[0] = e[0].strip()
         if len(e) == 3:
             continue
         link = fetch_links(url)
         if not link.startswith('http:'):
             link = urlparse.urljoin(url, link)
-        print "   %s" % (link,)
         e.append(link)
 
 with open('bloggers.yml', 'w') as f:

Benjamin Mako Hill || Want to submit a patch?