From 508fbc057fd18bf5f7b49b0c8b4b72ab31702832 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 19 Jan 2023 12:42:43 +0530 Subject: [PATCH] Update The Seattle Times --- recipes/seattle_times.recipe | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/recipes/seattle_times.recipe b/recipes/seattle_times.recipe index 1628bd9719..fafada2e9f 100644 --- a/recipes/seattle_times.recipe +++ b/recipes/seattle_times.recipe @@ -55,9 +55,5 @@ class SeattleTimes(BasicNewsRecipe): u'https://www.seattletimes.com/photo-video/feed/'), ] - def get_browser(self, *a, **kw): - # MyClatchy servers dont like the user-agent header, they hang forever - # when it is present - br = BasicNewsRecipe.get_browser(self, *a, **kw) - br.addheaders = [x for x in br.addheaders if x[0].lower() != 'user-agent'] - return br + def get_browser(self): + return BasicNewsRecipe.get_browser(self, user_agent='common_words/based')