Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed May 26, 2014
1 parent bc93263 commit 8908f0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipes/faznet.recipe
Expand Up @@ -53,10 +53,10 @@ class FazNet(BasicNewsRecipe):
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()
Expand Down

0 comments on commit 8908f0b

Please sign in to comment.