Change user agent string for Huffington Post.
This commit is contained in:
parent
155a981b6d
commit
3b4ee9bcdf
@ -55,7 +55,7 @@ class Grabber(ABC):
|
||||
return articles
|
||||
|
||||
def request(self):
|
||||
response = requests.get(self.feed_url)
|
||||
response = requests.get(self.feed_url, headers={"User-Agent": "JackNet"})
|
||||
response.raise_for_status()
|
||||
return response.content
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user