mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
661da9aef1
commit
6f6812ccd7
@ -55,10 +55,10 @@ class AdvancedUserRecipe1299694372(BasicNewsRecipe):
|
|||||||
self.report_progress(0, 'Fetching feed'+' %s...'%(feedtitle if feedtitle else feedurl))
|
self.report_progress(0, 'Fetching feed'+' %s...'%(feedtitle if feedtitle else feedurl))
|
||||||
articles = []
|
articles = []
|
||||||
soup = self.index_to_soup(feedurl)
|
soup = self.index_to_soup(feedurl)
|
||||||
for item in soup.findAll('div', attrs={'class':'title_row'}):
|
for item in soup.findAll('div', attrs={'class':'js_title_row title_row'}):
|
||||||
#description = self.tag_to_string(item.div)
|
# description = self.tag_to_string(item.div)
|
||||||
atag = item.a
|
atag = item.a
|
||||||
if atag and atag.has_key('href'):
|
if atag and 'href' in atag:
|
||||||
url = atag['href']
|
url = atag['href']
|
||||||
articles.append({
|
articles.append({
|
||||||
'url' :url
|
'url' :url
|
||||||
|
Loading…
x
Reference in New Issue
Block a user