mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Apparently economist uses both <div> and <section> for index page sections
This commit is contained in:
parent
8de4c3268e
commit
f20a32e5c6
@ -256,7 +256,7 @@ class Economist(BasicNewsRecipe):
|
|||||||
self.log('Got cover:', self.cover_url)
|
self.log('Got cover:', self.cover_url)
|
||||||
|
|
||||||
feeds = []
|
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')
|
h2 = section.find('h2')
|
||||||
secname = self.tag_to_string(h2)
|
secname = self.tag_to_string(h2)
|
||||||
self.log(secname)
|
self.log(secname)
|
||||||
|
@ -256,7 +256,7 @@ class Economist(BasicNewsRecipe):
|
|||||||
self.log('Got cover:', self.cover_url)
|
self.log('Got cover:', self.cover_url)
|
||||||
|
|
||||||
feeds = []
|
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')
|
h2 = section.find('h2')
|
||||||
secname = self.tag_to_string(h2)
|
secname = self.tag_to_string(h2)
|
||||||
self.log(secname)
|
self.log(secname)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user