https://github.com/kovidgoyal/calibr...express.recipe
remove lines 110-112 and replace with
Code:
h1 = soup.find('h1')
if h1:
h2 = h1.findNext('h2')
if h2:
h2.name = 'p'
h2['id'] = 'sub-d'
and add to remove_tags
Quote:
dict(name='div', attrs={'class': lambda x: x and 'related-widget' in x}),
|
and
'immigrationimg' to remove_tags classes
extra_css additions
Quote:
em{font-style:italic; color:#808080;}
#sub-d{color:#202020; font-style:italic;}
|