This commit is contained in:
Kovid Goyal 2023-09-03 18:01:29 +05:30
parent 51bc836d19
commit 6c7fff344b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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'