diff --git a/recipes/economist.recipe b/recipes/economist.recipe index f23a9a2cf5..14e178745e 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -250,10 +250,9 @@ class Economist(BasicNewsRecipe): def get_browser(self, *args, **kwargs): if self.from_archive: kwargs['user_agent'] = ( - 'Mozilla/5.0 (Linux; Android 14; 330333QCG Build/AP1A.140705.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/125.0.6422.165 Mobile Safari/537.36 Lamarr/3.37.0-3037003 (android)' # noqa + 'Mozilla/5.0 (Linux; Android 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.6533.103 Mobile Safari/537.36 Lamarr' # noqa ) br = BasicNewsRecipe.get_browser(self, *args, **kwargs) - br.addheaders += [('x-requested-with', 'com.economist.lamarr')] else: # Needed to bypass cloudflare kwargs['user_agent'] = 'common_words/based' diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index f23a9a2cf5..14e178745e 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -250,10 +250,9 @@ class Economist(BasicNewsRecipe): def get_browser(self, *args, **kwargs): if self.from_archive: kwargs['user_agent'] = ( - 'Mozilla/5.0 (Linux; Android 14; 330333QCG Build/AP1A.140705.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/125.0.6422.165 Mobile Safari/537.36 Lamarr/3.37.0-3037003 (android)' # noqa + 'Mozilla/5.0 (Linux; Android 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.6533.103 Mobile Safari/537.36 Lamarr' # noqa ) br = BasicNewsRecipe.get_browser(self, *args, **kwargs) - br.addheaders += [('x-requested-with', 'com.economist.lamarr')] else: # Needed to bypass cloudflare kwargs['user_agent'] = 'common_words/based' diff --git a/recipes/economist_search.recipe b/recipes/economist_search.recipe index 654bf5e5e1..a0c621e7d2 100644 --- a/recipes/economist_search.recipe +++ b/recipes/economist_search.recipe @@ -158,10 +158,9 @@ class econ_search(BasicNewsRecipe): def get_browser(self, *args, **kwargs): kwargs['user_agent'] = ( - 'Mozilla/5.0 (Linux; Android 14; 330333QCG Build/AP1A.140705.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/125.0.6422.165 Mobile Safari/537.36 Lamarr/3.37.0-3037003 (android)' # noqa + 'Mozilla/5.0 (Linux; Android 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.6533.103 Mobile Safari/537.36 Lamarr' # noqa ) br = BasicNewsRecipe.get_browser(self, *args, **kwargs) - br.addheaders += [('x-requested-with', 'com.economist.lamarr')] return br def preprocess_raw_html(self, raw, url): diff --git a/recipes/economist_world_ahead.recipe b/recipes/economist_world_ahead.recipe index 50e2f4feb2..3e9b177370 100644 --- a/recipes/economist_world_ahead.recipe +++ b/recipes/economist_world_ahead.recipe @@ -178,10 +178,9 @@ class EconomistWorld(BasicNewsRecipe): def get_browser(self, *args, **kwargs): kwargs['user_agent'] = ( - 'Mozilla/5.0 (Linux; Android 14; 330333QCG Build/AP1A.140705.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/125.0.6422.165 Mobile Safari/537.36 Lamarr/3.37.0-3037003 (android)' # noqa + 'Mozilla/5.0 (Linux; Android 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.6533.103 Mobile Safari/537.36 Lamarr' # noqa ) br = BasicNewsRecipe.get_browser(self, *args, **kwargs) - br.addheaders += [('x-requested-with', 'com.economist.lamarr')] return br def economist_test_article(self): diff --git a/recipes/substack.recipe b/recipes/substack.recipe index 059eaa1277..757cfcfdd6 100644 --- a/recipes/substack.recipe +++ b/recipes/substack.recipe @@ -41,8 +41,8 @@ class Substack(BasicNewsRecipe): recipe_specific_options = { 'auths': { 'short': 'enter the @handles you subscribe to:\nseperated by a space', - 'long': 'julianmacfarlane ianleslie .... ....', - 'default': 'julianmacfarlane ianleslie thesalvo', + 'long': '@julianmacfarlane @simplicius76 .... ....', + 'default': '@julianmacfarlane @simplicius76 @caitlinjohnstone @michaelmoore @seymourhersh @robertreich', }, 'days': { 'short': 'Oldest article to download from this news source. In days ', @@ -93,8 +93,8 @@ class Substack(BasicNewsRecipe): ans = [] u = self.recipe_specific_options.get('auths') if u and isinstance(u, str): - for x in u.split(): - ans.append('https://' + x.replace('@', '') + '.substack.com/feed') + for x in u.replace('@', ' ').split(): + ans.append('https://' + x + '.substack.com/feed') return ans def preprocess_html(self, soup):