This morning, I opened up a terminal, typed in python repost.py AdviceAnimals
and went to school. Three hours later, I was #1 on the front page or /r/all.
My post was an exact repost of this post, created by /u/xsited1, one year ago.
Eventually, my repost surpassed the original post in number of upvotes, ending up around 50k.
I posted on /r/programming, expecting at least a mildly positive response, and was belittled.
Then, I was banned from /r/AdviceAnimals. I suppose it was just a matter of time.
The premise is simple. repost.py
dredges up an old repost from a subreddit of your choosing, makes sure it's at least 200 days old, and reposts it on your account.
Note that this will not work on new accounts -- Reddit's spam filter will automatically block the posts. However, it should work on any account older than a few weeks, with at least a few comments and/or posts.
Contact: I am /u/chalcidfly, and my sub is https://www.reddit.com/r/redditscripting/
- Log in to your account at reddit.com
- Go to your app preferences
- Click the "Create a new app" button at the bottom of the page.
- Choose the script option as the app type.
- Set the redirect uri option as http://www.example.com/unused/redirect/uri
- Set the other options to whatever you want.
- Download repost.py
- Open repost.py in a text editor, and fill in your new app's information into the global variables
client_id
andclient_secret
- Write your username and password into the global variables
username
andpassword
- Run the script with the first CLI arg as the subreddit you want to post to. Ex:
python repost.py funny
- Profit.
I built this after reading through OAuth Quick Start and the Official Reddit API docs -- and, of course, a lot of googling and Stack Overflow. I also used Dirty Markup extensively for prettifying returned JSON data.