def retrieveQuotes(self):
     ''' retrieve quotes '''
     googleCrawler = GoogleCrawler(self.symbols, self.start)
     googleCrawler.getAndSaveSymbols()
     print("Sqlite location: %s" % googleCrawler.sqlLocation)
     print("Succeeded: %s" % googleCrawler.succeeded)
     print("Failed: %s" % googleCrawler.failed)
Example #2
0
 def retrieveQuotes(self):
     ''' retrieve quotes '''
     googleCrawler = GoogleCrawler(self.symbols, self.start)
     googleCrawler.getAndSaveSymbols()
     print("Sqlite location: %s" % googleCrawler.sqlLocation)
     print("Succeeded: %s" % googleCrawler.succeeded)
     print("Failed: %s" % googleCrawler.failed)
Example #3
0
    def __startCrawler(self, startDate, poolsize):
        ''' start googleCrawler '''
        googleCrawler = GoogleCrawler(self.symbols, startDate, poolsize)
        googleCrawler.getAndSaveSymbols()
        Crawler.succeeded = googleCrawler.succeeded
        Crawler.failed = googleCrawler.failed
        Crawler.endTime = time.asctime()

        LOG.info("Sqlite location: %s" % googleCrawler.sqlLocation)
        LOG.info("Succeeded: %s" % googleCrawler.succeeded)
        LOG.info("Failed: %s" % googleCrawler.failed)