fix 404 errors
This commit is contained in:
parent
bf351294b1
commit
2a9b1f3eac
@ -118,6 +118,7 @@ class Getter:
|
||||
yield a bunch of articles
|
||||
"""
|
||||
r = requests.get(self.url)
|
||||
if r.status_code == 200:
|
||||
j = r.json()
|
||||
for t in j['threads']:
|
||||
posts = t['posts']
|
||||
|
Reference in New Issue
Block a user