mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:13:40 +02:00
Apparently economist uses both <div> and <section> for index page sections
This commit is contained in:
parent
8de4c3268e
commit
f20a32e5c6
2 changed files with 2 additions and 2 deletions
|
|
@ -256,7 +256,7 @@ def economist_parse_index(self, soup):
|
|||
self.log('Got cover:', self.cover_url)
|
||||
|
||||
feeds = []
|
||||
for section in soup.findAll('div', **classes('layout-weekly-edition-section')):
|
||||
for section in soup.findAll(**classes('layout-weekly-edition-section')):
|
||||
h2 = section.find('h2')
|
||||
secname = self.tag_to_string(h2)
|
||||
self.log(secname)
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ def economist_parse_index(self, soup):
|
|||
self.log('Got cover:', self.cover_url)
|
||||
|
||||
feeds = []
|
||||
for section in soup.findAll('div', **classes('layout-weekly-edition-section')):
|
||||
for section in soup.findAll(**classes('layout-weekly-edition-section')):
|
||||
h2 = section.find('h2')
|
||||
secname = self.tag_to_string(h2)
|
||||
self.log(secname)
|
||||
|
|
|
|||
Loading…
Reference in a new issue