mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-06-04 21:15:24 -04:00
...
This commit is contained in:
@@ -3,6 +3,8 @@ https://www.economist.com/the-world-in-brief
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe, classes
|
||||
from calibre.ebooks.BeautifulSoup import Tag
|
||||
|
||||
|
||||
def new_tag(soup, name, attrs=()):
|
||||
impl = getattr(soup, 'new_tag', None)
|
||||
@@ -10,6 +12,7 @@ def new_tag(soup, name, attrs=()):
|
||||
return impl(name, attrs=dict(attrs))
|
||||
return Tag(soup, name, attrs=attrs or None)
|
||||
|
||||
|
||||
class Espresso(BasicNewsRecipe):
|
||||
title = 'The Economist Espresso'
|
||||
language = 'en'
|
||||
|
||||
Reference in New Issue
Block a user