Пример #1
0
	def _go(self):

		self.log.info("Checking Fakku feeds for updates")
		fl = FakkuFeedLoader()
		fl.go()
		fl.closeDB()

		time.sleep(3)
		#print "wat", cl

		if not runStatus.run:
			return

		cl = FakkuContentLoader()

		if not runStatus.run:
			return

		todo = cl.retreiveTodoLinksFromDB()

		if not runStatus.run:
			return

		cl.processTodoLinks(todo)
		cl.closeDB()
Пример #2
0
    def _go(self):

        self.log.info("Checking Fakku feeds for updates")
        fl = FakkuFeedLoader()
        fl.go()
        fl.closeDB()

        time.sleep(3)
        #print "wat", cl

        if not runStatus.run:
            return

        cl = FakkuContentLoader()

        if not runStatus.run:
            return

        todo = cl.retreiveTodoLinksFromDB()

        if not runStatus.run:
            return

        cl.processTodoLinks(todo)
        cl.closeDB()
Пример #3
0
def test():

    loader = FakkuFeedLoader()
    loader.resetStuckItems()
    # loader.go()

    # for x in range(1, 5):
    # 	feedItems = loader.getItems(pageOv	erride=x)
    # 	loader.processLinksIntoDB(feedItems)
    # # 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()

    # runner = Runner()
    # runner.go()

    cl = FakkuContentLoader()
    # cl.retreivalThreads = 1
    cl.go()
Пример #4
0
def test():


	loader = FakkuFeedLoader()
	loader.resetStuckItems()
	# loader.go()

	# for x in range(1, 5):
	# 	feedItems = loader.getItems(pageOv	erride=x)
	# 	loader.processLinksIntoDB(feedItems)
	# # 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()

	# runner = Runner()
	# runner.go()


	cl = FakkuContentLoader()
	# cl.retreivalThreads = 1
	cl.go()