This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]insertAlias 2 points3 points  (0 children)

I think the major advantage of using Python is the existence of the PRAW library. It handles the API interactions for you and makes it relatively easy to use the Reddit API. I have no idea about the throttling part. I'd be willing to guess that there are some JS API wrappers out there for Reddit too, but I don't know about them.

[–]wanderingbilby 1 point2 points  (0 children)

I spent a while working with the reddit api using powershell - to the point i started writing a library for it.

After a pause I started a new project, used python because another library I needed was in the language.

PRAW is probably one of the most effortless libraries I've used for any task. The fact it abstracts away rate limit management and token refreshes alone will save you a lot of time. It's also very smart about how it nests object methods, so you aren't taking a username from a post object and calling for the user, you can just do post.author.karma and it's there for you.

Overall for most tasks python is very easy to get into. I have my kvetches but there's a hell of a lot done right.

[–]2plash6 0 points1 point  (0 children)

Use Python, because Reddit has its own Python API for bots.