From c0ceeeb35f114579f71cbdefa5396f8a6ee3d681 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 3 Nov 2023 10:44:47 +0530 Subject: [PATCH] Bloomberg update --- recipes/bloomberg-business-week.recipe | 2 +- recipes/bloomberg.recipe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/bloomberg-business-week.recipe b/recipes/bloomberg-business-week.recipe index 3c8acdabed..c90f9bfbc7 100644 --- a/recipes/bloomberg-business-week.recipe +++ b/recipes/bloomberg-business-week.recipe @@ -92,7 +92,7 @@ class Bloomberg(BasicNewsRecipe): ] def get_browser(self, *a, **kw): - kw['user_agent'] = 'common_words/based' + kw['user_agent'] = 'Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/119.0' br = BasicNewsRecipe.get_browser(self, *a, **kw) br.set_handle_redirect(False) return br diff --git a/recipes/bloomberg.recipe b/recipes/bloomberg.recipe index 10bf380349..0a1841bb3f 100644 --- a/recipes/bloomberg.recipe +++ b/recipes/bloomberg.recipe @@ -108,7 +108,7 @@ class Bloomberg(BasicNewsRecipe): return pt.name def get_browser(self, *a, **kw): - kw['user_agent'] = 'common_words/based' + kw['user_agent'] = 'Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/119.0' br = BasicNewsRecipe.get_browser(self, *a, **kw) br.set_handle_redirect(False) return br