mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix Bloomberg
* Handle Google news cookies
This commit is contained in:
parent
ae26837744
commit
08608b189b
@ -207,3 +207,11 @@ class Bloomberg(BasicNewsRecipe):
|
||||
article.summary = self.tag_to_string(soup.find('div', attrs={'class':'subhead'}))
|
||||
article.text_summary = self.tag_to_string(soup.find('div', attrs={'class':'subhead'}))
|
||||
article.title = article.title.replace(' - Bloomberg', '')
|
||||
|
||||
def get_browser(self):
|
||||
# -- Handle Google's cookies consent page
|
||||
br = BasicNewsRecipe.get_browser(self)
|
||||
br.open('https://news.google.com')
|
||||
br.select_form(action="https://consent.google.com/save")
|
||||
br.submit()
|
||||
return br
|
||||
|
Loading…
x
Reference in New Issue
Block a user