mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-27 07:06:13 +01:00
Update The Hindu
This commit is contained in:
parent
02e1c594d6
commit
6011d45ef3
1 changed files with 2 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ class TheHindu(BasicNewsRecipe):
|
|||
|
||||
def articles_from_soup(self, soup):
|
||||
ans = []
|
||||
div = soup.find('section', attrs={'id': 'section_1'})
|
||||
div = soup.find('section', attrs={'id': 'section_'})
|
||||
if div is None:
|
||||
return ans
|
||||
ul = div.find('ul', attrs={'class': 'archive-list'})
|
||||
|
|
@ -48,8 +48,7 @@ def parse_index(self):
|
|||
if self.is_accepted_entry(x):
|
||||
section_list.append(
|
||||
(string.capwords(self.tag_to_string(x)), x['href']))
|
||||
self.log('Found section:', 'Front page')
|
||||
feeds = [('Front Page', self.articles_from_soup(soup))]
|
||||
feeds = []
|
||||
|
||||
# For each section title, fetch the article urls
|
||||
for section in section_list:
|
||||
|
|
|
|||
Loading…
Reference in a new issue