Skip to content

Instantly share code, notes, and snippets.

@ColeMundus
Last active November 19, 2017 18:25
Show Gist options
  • Save ColeMundus/7cd46a4da7f5e5e08d936e1754709572 to your computer and use it in GitHub Desktop.
Save ColeMundus/7cd46a4da7f5e5e08d936e1754709572 to your computer and use it in GitHub Desktop.
ids = requests.get('https://api.pushshift.io/reddit/submission/comment_ids/' + postID).json()['data']
c = []
for x in chunks(ids, 500):
c += requests.get('https://api.pushshift.io/reddit/search/comment/?ids=' + ','.join(x)).json()['data']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment