Seems to work with following twist
Quote:
# soup = self.index_to_soup('https://www.bloomberg.com')
# bw = 'soup.find('a', href=lambda x: x and x.startswith('/magazine/businessweek'))'
edition = 'https://www.bloomberg.com/magazine/businessweek/24_09'
self.log('Downloading ', edition)
soup = self.index_to_soup(edition)
self.cover_url = soup.find('img')['src'].replace('25x19', '600x800')
if timefmt := soup.find(**prefixed_classes('styles_TableOfConten tsTitle__')):
self.timefmt = ' [' + (self.tag_to_string(timefmt).replace(' Issue', '')).strip() + ']'
|