mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-02 05:34:40 +01:00
Reuters ignore missing sections
This commit is contained in:
parent
a18806490c
commit
448d50a16c
1 changed files with 5 additions and 1 deletions
|
|
@ -73,7 +73,11 @@ def parse_index(self):
|
|||
|
||||
def parse_reuters_section(self, base, slug):
|
||||
url = 'https://' + base + '/' + slug
|
||||
soup = self.index_to_soup(url)
|
||||
try:
|
||||
soup = self.index_to_soup(url)
|
||||
except Exception:
|
||||
self.log.error('Failed to load Reuters section:', url)
|
||||
return
|
||||
for div in soup.findAll(**classes('news-headline-list')):
|
||||
h3 = div.find(**classes('story-title'))
|
||||
a = h3.parent
|
||||
|
|
|
|||
Loading…
Reference in a new issue