This commit is contained in:
Kovid Goyal 2023-12-18 11:29:00 +05:30
commit 0cb1210d02
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 0 deletions

View File

@ -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'),

View File

@ -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')}):