mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update The Globe and Mail
This commit is contained in:
parent
168718e3e7
commit
3f7c2e9b8e
@ -48,7 +48,7 @@ class GlobeMail(BasicNewsRecipe):
|
||||
return ans
|
||||
|
||||
def parse_gm_section(self, soup):
|
||||
for a in soup.findAll('a', href=True, attrs={'data-lt-lid': lambda x: x and x.startswith('Headline.')}):
|
||||
for a in soup.findAll('a', href=True, attrs={'data-lt-pos': lambda x: x and x.endswith('featured')}):
|
||||
headline = a.find('div', 'c-card__hed-text')
|
||||
title = self.tag_to_string(headline)
|
||||
url = absolutize(a['href'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user