Archived
1
0

fix 404 errors

This commit is contained in:
jeff 2015-10-14 13:19:47 -04:00
parent bf351294b1
commit 2a9b1f3eac

View File

@ -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']