mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
0cb1210d02
@ -33,6 +33,9 @@ class TheWashingtonPost(BasicNewsRecipe):
|
||||
.time { font-size:small; color: #202020; }
|
||||
'''
|
||||
|
||||
def get_browser(self):
|
||||
return BasicNewsRecipe.get_browser(self, verify_ssl_certificates=False, user_agent='common_words/based')
|
||||
|
||||
# Official feeds: https://www.washingtonpost.com/discussions/2018/10/12/washington-post-rss-feeds/
|
||||
feeds = [
|
||||
(u'Politics', u'http://feeds.washingtonpost.com/rss/politics'),
|
||||
|
@ -31,6 +31,9 @@ class wapoprint(BasicNewsRecipe):
|
||||
.time { font-size:small; color: #202020; }
|
||||
'''
|
||||
|
||||
def get_browser(self):
|
||||
return BasicNewsRecipe.get_browser(self, user_agent='common_words/based')
|
||||
|
||||
def parse_index(self):
|
||||
soup = self.index_to_soup('https://www.washingtonpost.com/todays_paper/updates/')
|
||||
if img := soup.find('img', attrs={'src':lambda x: x and x.endswith('_FrontPage.png')}):
|
||||
|
Loading…
x
Reference in New Issue
Block a user