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')
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')
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')
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")