Building an Reddit AI/ML Comment Bot

GoGuerilla

Power Member
Joined
Oct 15, 2018
Messages
744
Reaction score
440
This idea came about as I was paying someone 2hrs/work per day to keep about 20 accounts active looking for some PR work for a client of mine.

This is not a cost-effective long term strategy and does not scale well. So I set out to do something different.

I am using the official PRAW Reddit API, which does mean some prior setup is required on each account not just user:password, but I believe this will help the accounts last a lot longer than trying to avoid detection using requests or selenium (also easy to update in future if needed)
Each account is stored in google sheets along with a dedicated proxy, although I will be testing multiple accounts on one proxy.

This bot has three stages.

1. Learning
  • This is the most crucial stage. Each account is given its own database to add content to. The comments are taken from PushShift.io API(Historical Reddit Data) and categorized into: Score, Subreddit and Content. We ONLY take comments with at least 30 upvotes and from larger subs over 500,000 users. This is to make sure when we comment, we can blend in.
2. Commenting
  • Once we have enough data ( I have each user learn about ~100mb of comments which is a TON) we can now move onto finding good posts to comment on. There are specific subreddits where it is easy to gain karma due to the 'circlejerk' nature of the subreddits, but for now, I want to let this run wild and really figure out where the best results will come from. We are using a Markov-Chain based python library to do the content generation, but eventually, I would like to move to GPT2/OpenAI but it is much more resource-intensive.
3. Deleting bad comments
  • We consistently monitor each profile and automatically delete any comments which are under -1 score. This generally means the comment was irrelevant so we do not want it sitting on our profile.


I may post a public profile here for you all to monitor, but I do not want them to get banned.

I'd love to hear what sort of features would be cool to introduce into this.
 
The first part you mentioned has nothing to do with machine learning. There's a clear discretion between regular automation tasks and machine learning.
 
Update:

These accounts have been going extremely strong since I started this thread, unfortunately there was an issue with my main supplier which meant 80% of my stock was banned (20% from another supplier survived, so there was no problem with my bot)

I am getting an average of 300-700 karma per account per month, each running on its own private proxy.
 
Back
Top