Update The New Republic

This commit is contained in:
Kovid Goyal 2012-08-07 21:08:54 +05:30
parent 015845c7d3
commit 8e3092b78b

View File

@ -44,6 +44,10 @@ class TNR(BasicNewsRecipe):
em=post.find('em') em=post.find('em')
b=post.find('b') b=post.find('b')
a=post.find('a',href=True) a=post.find('a',href=True)
p=post.find('img', src=True)
#Find cover
if p is not None:
self.cover_url = p['src'].strip()
if em is not None: if em is not None:
section_title = self.tag_to_string(em).strip() section_title = self.tag_to_string(em).strip()
subsection_title = '' subsection_title = ''