Change user agent string for Huffington Post.

This commit is contained in:
Jack Hadrill 2020-01-18 21:45:44 +00:00
parent 155a981b6d
commit 3b4ee9bcdf

View File

@ -55,7 +55,7 @@ class Grabber(ABC):
return articles return articles
def request(self): def request(self):
response = requests.get(self.feed_url) response = requests.get(self.feed_url, headers={"User-Agent": "JackNet"})
response.raise_for_status() response.raise_for_status()
return response.content return response.content