def get_bulk_soup( self, urls, bar=None ): Cache.cache_bulk(urls, bar=bar) if bar: bar.label = 'Souping...' bar.expected_size = len(urls) bar.show(0) ret = {} for url in urls: ret[url] = self.getsoup(url) if bar: bar.show(bar.last_progress + 1) return ret