data science

Reddit User Info – Python

This one is just for me. No explanation. As is. This script will let you download all the posts submitted by any Reddit user. Just put the user name in line 9.


Checking out a Sub-Reddit’s Front Page – Python

This code uses Reddit’s own API, praw, to download all the post titles, karma counts, position, and reddit id of each post within a sub reddit. This example collects all the info from the top 100 posts in r/technology at on hour intervals and then saves it to a file.