def _go(self): self.log.info("Checking Mk feeds for updates") fl = MkFeedLoader() fl.go() fl.closeDB() time.sleep(3) #print "wat", cl if not runStatus.run: return cl = MkContentLoader() if not runStatus.run: return todo = cl.retreiveTodoLinksFromDB() if not runStatus.run: return cl.processTodoLinks(todo) cl.closeDB()
def test(): loader = MkFeedLoader() # loader.go() loader.getMainItems() # # feedItems = loader.getItemsFromContainer("Ore no Kanojo + H", loader.quoteUrl("http://download.japanzai.com/Ore no Kanojo + H/index.php")) # # loader.log.info("Processing feed Items") # for item in feedItems: # print("Item", item) loader.closeDB()