mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Popular Science
This commit is contained in:
parent
9557591321
commit
983238a811
@ -33,6 +33,7 @@ class AdvancedUserRecipe1282101454(BasicNewsRecipe):
|
||||
content = item.find('content:encoded', {'content': 'http://purl.org/rss/1.0/modules/content/'}).text
|
||||
content = '<html><body><h1>{title}</h1><h3>{desc}</h3><p>{author}</p><div>{content}</div></body></html>'.format(
|
||||
title=title, author=author, desc=desc, content=content)
|
||||
if author:
|
||||
desc += ' by ' + author
|
||||
with PersistentTemporaryFile('popsci.html') as pt:
|
||||
pt.write(content.encode('utf-8'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user