@@ -0,0 +1,937 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0Aimport twitter_rss%0Aimport time%0Aimport config%0Aimport re%0A%0A# Update the feeds%0Atry:%0A    while 1:%0A        print 'Updating ALL THE FEEDS!'%0A        try:%0A            with open(config.XML_DIR + 'user/user.txt', 'r') as usernames:%0A                for user in usernames:%0A                    user = re.findall('(%5Cw+)', user)%5B0%5D%0A                    print(user)%0A                    twitter_rss.UserTweetGetter(user)%0A            usernames.close()%0A%0A            with open(config.XML_DIR + 'htag/htag.txt', 'r') as hashtags:%0A                for htag in hashtags:%0A                    htag = re.findall('(%5Cw+)', htag)%5B0%5D%0A                    twitter_rss.HashtagTweetGetter(htag)%0A            hashtags.close()%0A        except IOError:%0A            print 'File could not be read'%0A        time.sleep(config.TIMER)%0A%0Aexcept (KeyboardInterrupt, SystemExit):%0A    print '%5CnKeyboardInterrupt catched -- Finishing program.'%0A

undo remove