mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix Ars Tecnica
This commit is contained in:
parent
b41704341f
commit
b407015ab8
@ -60,7 +60,7 @@ class ArsTechnica2(BasicNewsRecipe):
|
|||||||
nurl = 'http://arstechnica.com' + atag['href']
|
nurl = 'http://arstechnica.com' + atag['href']
|
||||||
rawc = self.index_to_soup(nurl,True)
|
rawc = self.index_to_soup(nurl,True)
|
||||||
soup2 = BeautifulSoup(rawc, fromEncoding=self.encoding)
|
soup2 = BeautifulSoup(rawc, fromEncoding=self.encoding)
|
||||||
|
|
||||||
readmoretag = soup2.find('div', attrs={'class':'read-more-link'})
|
readmoretag = soup2.find('div', attrs={'class':'read-more-link'})
|
||||||
if readmoretag:
|
if readmoretag:
|
||||||
readmoretag.extract()
|
readmoretag.extract()
|
||||||
@ -90,7 +90,3 @@ class ArsTechnica2(BasicNewsRecipe):
|
|||||||
|
|
||||||
return soup
|
return soup
|
||||||
|
|
||||||
def get_article_url(self, article):
|
|
||||||
return article.get('feedburner_origlink', None).rpartition('?')[0]
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user