diff --git a/recipes/wash_post.recipe b/recipes/wash_post.recipe index 35b3f7e61f..7d25743988 100644 --- a/recipes/wash_post.recipe +++ b/recipes/wash_post.recipe @@ -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'), diff --git a/recipes/wash_post_print.recipe b/recipes/wash_post_print.recipe index 9911f04f78..c370f5250d 100644 --- a/recipes/wash_post_print.recipe +++ b/recipes/wash_post_print.recipe @@ -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')}):