Tweaked Hacker News recipe

This commit is contained in:
Tom Scholl 2011-08-29 17:55:12 +01:00
parent 02f58a2509
commit c1173e30cf

View File

@ -97,10 +97,6 @@ class HackerNews(BasicNewsRecipe):
content = u'<html><body><img src="' + url + u'"></body></html>' content = u'<html><body><img src="' + url + u'"></body></html>'
else: else:
content = self.get_readable_content(url) content = self.get_readable_content(url)
f = open('/tmp/hn_content.html', 'w')
f.write(content)
f.close()
self.temp_files.append(PersistentTemporaryFile('_fa.html')) self.temp_files.append(PersistentTemporaryFile('_fa.html'))
self.temp_files[-1].write(content) self.temp_files[-1].write(content)