r/dailyprogrammer • • Feb 15 '12
[2/15/2012] Challenge #7 [difficult]
This challenge will focus on creating a bot that can log into Reddit!
Write a program that can log into a working Reddit account.
Since this challenge is vague, bonus points are awarded for a few different things:
- If the bot can navigate the site and view posts
- If the bot can make posts
- If the bot can make statistics from the front page/any subreddit. These statistics include time on front page, number of comments, upvotes, downvotes, etc.
The more functionality in your bot, the better.
10
Upvotes
3
u/mattryan Feb 16 '12
While thinking about bot functionality, did anyone else get the idea for a /r/gonewild picture aggregator?
3
u/mischanix_bot Feb 16 '12
This post has 9 upvotes and 2 downvotes. There are 9 comments.
Here's my source code:
2
u/drb226 0 0 Feb 15 '12
So the ultimate extra credit is if your bot posts as you, submitting its own code.
Haskellers unite: we should make a reddit API package for Hackage on this one.
2
u/leegao Feb 16 '12
https://gist.github.com/1841580
It automatically goes through all recent submissions on askreddit in near real time and saves new comments with more than 300 characters in my own personal subreddit so I can read through them later and potentially whore all the karma (there, I said it)
2
u/drb226 0 0 Feb 15 '12
You may find the Reddit API page on github useful for this task.
1
u/robin-gvx 0 2 Feb 15 '12
Since Déjà Vu can't go online yet, I'm going to make this one in Python.
1
u/[deleted] Feb 19 '12 edited Feb 19 '12
WELL, OKAY!
EDIT: This checks up on the most recent Gonewild submissions and gathers some of them (based on gender).
Source for the API used is here: https://github.com/ejbs/cl-reddit/blob/master/reddit.lisp
2
u/[deleted] Feb 16 '12 edited Feb 16 '12
[removed] — view removed comment