mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 09:59:58 +01:00
...
This commit is contained in:
parent
bc93263942
commit
8908f0b83c
1 changed files with 4 additions and 4 deletions
|
|
@ -53,10 +53,10 @@ def append_page(self, soup, appendtag, position): # AGe upd 2014-01-14
|
|||
nexturl = self.INDEX + pager['href']
|
||||
soup2 = self.index_to_soup(nexturl)
|
||||
texttag = soup2.find('div', attrs={'class':'FAZArtikelContent'})
|
||||
texttag.find('div', attrs={'class':'ArtikelFooter'}).extract()
|
||||
texttag.find('div', attrs={'class':'ArtikelAbbinder'}).extract()
|
||||
texttag.find('div', attrs={'class':'ArtikelKommentieren Artikelfuss GETS;tk;boxen.top-lesermeinungen;tp;content'}).extract()
|
||||
texttag.find('div', attrs={'class':'Anzeige GoogleAdsBuehne'}).extract()
|
||||
for cls in ('ArtikelFooter', 'ArtikelAbbinder', 'ArtikelKommentieren Artikelfuss GETS;tk;boxen.top-lesermeinungen;tp;content', 'Anzeige GoogleAdsBuehne'):
|
||||
div = texttag.find(attrs={'class':cls})
|
||||
if div is not None:
|
||||
div.extract()
|
||||
newpos = len(texttag.contents)
|
||||
self.append_page(soup2,texttag,newpos)
|
||||
texttag.extract()
|
||||
|
|
|
|||
Loading…
Reference in a new issue