forked from rDrama/rDrama
dont break
parent
dbddee2fa1
commit
b2c17d1701
|
@ -40,7 +40,7 @@ def get_mentions(cache, queries, reddit_notifs_users=False):
|
||||||
for query in queries:
|
for query in queries:
|
||||||
url = f'https://api.pullpush.io/reddit/search/{kind}?q={query}'
|
url = f'https://api.pullpush.io/reddit/search/{kind}?q={query}'
|
||||||
try: req = requests.get(url, headers=HEADERS, timeout=5, proxies=proxies)
|
try: req = requests.get(url, headers=HEADERS, timeout=5, proxies=proxies)
|
||||||
except: break
|
except: return []
|
||||||
data += req.json()['data']
|
data += req.json()['data']
|
||||||
|
|
||||||
data = sorted(data, key=lambda x: int(x['created_utc']), reverse=True)
|
data = sorted(data, key=lambda x: int(x['created_utc']), reverse=True)
|
||||||
|
|
Loading…
Reference in New Issue