Skip to content

Instantly share code, notes, and snippets.

@kmcelwee
Created March 2, 2020 00:53
Show Gist options
  • Save kmcelwee/30d1798fcfc22a830dfd866df23e3e97 to your computer and use it in GitHub Desktop.
Save kmcelwee/30d1798fcfc22a830dfd866df23e3e97 to your computer and use it in GitHub Desktop.
reddit = praw.Reddit(client_id=CLIENT_ID, client_secret=CLIENT_SECRET, user_agent=USER_AGENT)
j = []
latest_id = None
for page in range(10):
sub = reddit.subreddit('FloridaMan')
for s in s.top(params={'after': latest_id, 't': 'all'}):
j.append({
# all the data you want
})
latest_id = 't3_' + sub.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment