Esempio n. 1
0
 def run(self):
     try :
         filename = spider.queueSpider(self.add_link_dictionary)
         self.QUEUESPIDERRETURNEDFILENAME.emit(filename)
     except:
         print("Spider couldn't find download information")
         logger.sendToLog(
             "Spider couldn't find download information", "ERROR")
Esempio n. 2
0
 def run(self):
     try:
         filename = spider.queueSpider(self.add_link_dictionary)
         self.QUEUESPIDERRETURNEDFILENAME.emit(filename)
     except Exception as e:
         print(e)
         print("Spider couldn't find download information")
         logger.logObj.error("Spider couldn't find download information",
                             exc_info=True)
Esempio n. 3
0
    def run(self):
        try:
            filename = spider.queueSpider(self.dict)
            if filename:
                self.QUEUESPIDERRETURNEDFILENAME.emit(filename)
            else:
                logger.logObj.error(
                    "Spider couldn't find download information", exc_info=True)

        except Exception as e:
            # write error in log
            logger.logObj.error("Spider couldn't find download information",
                                exc_info=True)
            logger.logObj.error(str(e), exc_info=True)
Esempio n. 4
0
    def run(self):
        try:
            filename = spider.queueSpider(self.dict)
            if filename:
                self.QUEUESPIDERRETURNEDFILENAME.emit(filename)
            else:
                logger.logObj.error(
                    "Spider couldn't find download information", exc_info=True)

        except Exception as e:
            # write error in log
            logger.logObj.error(
                "Spider couldn't find download information", exc_info=True)
            logger.logObj.error(
                str(e), exc_info=True)