Update economist_espresso.recipe

This commit is contained in:
unkn0w7n 2024-05-02 13:23:15 +05:30
parent 971d346cc1
commit 7c95d28ce8

View File

@ -56,6 +56,9 @@ class Espresso(BasicNewsRecipe):
), ),
] ]
def print_version(self, url):
return 'https://webcache.googleusercontent.com/search?q=cache:' + url
def preprocess_html(self, soup): def preprocess_html(self, soup):
if h1 := soup.find('h1'): if h1 := soup.find('h1'):
if p := h1.find_next_sibling('p'): if p := h1.find_next_sibling('p'):