Bloomberg update

This commit is contained in:
unkn0w7n 2023-11-03 10:44:47 +05:30
parent 4906655d20
commit c0ceeeb35f
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