236
237
238
239
240
241
242
243
244
245
246
247
248
249
|
elif cat.find("→") > 0:
return self.placeholder
# collect links
data = []
after = None
for i in range(1, int(conf.reddit_pages) + 1):
try:
j = ahttp.get(
"http://www.reddit.com/r/{}/new.json".format(cat.lower()),
{ "sort": "new", "after": after }
)
j = json.loads(j)
except Exception as e:
|
>
|
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
|
elif cat.find("→") > 0:
return self.placeholder
# collect links
data = []
after = None
for i in range(1, int(conf.reddit_pages) + 1):
self.progress(conf.reddit_pages)
try:
j = ahttp.get(
"http://www.reddit.com/r/{}/new.json".format(cat.lower()),
{ "sort": "new", "after": after }
)
j = json.loads(j)
except Exception as e:
|