https://github.com/kovidgoyal/calibr...a_today.recipe
remove line 12 and add it to 19 extra_css .. it repeated.
add below after line 65
Code:
try:
desc = self.tag_to_string(a.findParent(
'span', attrs={'class':'field-content'}).findNext(
'div', attrs={'class':'views-field'})).strip()
except Exception:
desc = self.tag_to_string(a.findParent(
('h3','p')).findNext('span', attrs={'class':'kicket-text'})).strip()
if not url or not title:
continue
self.log('\t', title)
self.log('\t', desc)
self.log('\t\t', url)
sections[section].append({'title': title, 'url': url, 'description':desc})
and after line 86 in pre_process_html
Code:
for h2 in soup.findAll('h2'):
h2.name = 'h5'
Also in
Indian Express:
https://github.com/kovidgoyal/calibr...express.recipe
add '
ie-premium' to remove_tags_classes
and remove lines 108-110 and replace with
Code:
for h2 in soup.findAll('h2'):
h2.name = 'h5'
h5 a bit better than h4.. neither small nor big