Exemplo n.º 1
0
 def load(self):
     self.reset()
     _logger.info('loading from %s', self.url)
     rawfile = webutil.loadpage(self.url)
     
     if rawfile:
         _logger.info('%d bytes loaded', len(rawfile))
         self.loaded = self._parse(rawfile)
     else:
         _logger.error('can\'t download photo page')
Exemplo n.º 2
0
 def load(self):
     self.reset()
     _logger.info('loading from %s', self.url)
     rawfile = webutil.loadpage(self.url)
     
     if rawfile:
         _logger.info('%d bytes loaded', len(rawfile))
         self.__loaded = self._parse(rawfile)
     else:
         _logger.error('can\'t download photo page')
Exemplo n.º 3
0
 def load(self):
     self.reset()
     _logger.info('loading from %s', self.url)
     self.content = webutil.loadpage(self.url)
     if self.content:
         _logger.info('%d bytes loaded', len(self.content))
         self.__loaded = True
         self._parse()
     else:
         _logger.error('can\'t download photo page')
Exemplo n.º 4
0
 def load(self):
     self.reset()
     _logger.info('loading from %s', self.url)
     self.content = webutil.loadpage(self.url)
     if self.content:
         _logger.info('%d bytes loaded', len(self.content))
         self.__loaded = True
         self._parse()
     else:
         _logger.error('can\'t download photo page')
Exemplo n.º 5
0
    def load(self):
        self.reset()
        _logger.info("loading from %s", self.url)
        rawfile = webutil.loadpage(self.url)

        if rawfile:
            _logger.info("%d bytes loaded", len(rawfile))
            self.__loaded = self._parse(rawfile)
        else:
            _logger.error("can't download photo page")