1
0
Fork 0
mirror of https://bitbucket.org/oreolek/imaginary-realities.git synced 2024-05-19 17:38:33 +03:00
imaginary-realities/update.py
2015-05-12 17:26:39 +12:00

19 lines
538 B
Python

import praw
r_username = "rmtew"
r_platform = "python"
r_appname = "siteshitter"
r_appversion = "v0.1"
r_useragent = "%s:%s:%s (by /u/%s)" % (r_platform, r_appname, r_appversion, r_username)
def run():
r = praw.Reddit(user_agent=r_useragent)
submissions = r.search("url:'http://journal.imaginary-realities.com/'")
for match in submissions:
match.ups, match.downs, match.score, match.title, match.url
# Take the url, strip guff at the end, match it to a generated page.
if __name__ == "__main__":
run()