This commit is contained in:
Kovid Goyal 2023-11-03 11:25:31 +05:30
commit 018ce6dd93
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

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

View File

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