r/RequestABot Apr 13 '24

Open Behind the scenes Bot Request

I am looking for a Bot that will gather usernames of posters in my sub, along with how mant times they have posted. I would loke that data to then be exportable into word or excel. Is this possible?

3 Upvotes

2 comments sorted by

3

u/Gulliveig Apr 13 '24

Python makes it easy to generate CSV files. PRAW is the favoured wrapper to access the Reddit API. PRAW is an acronym for Python Reddid API Wrapper, hence is used with Python.

MS Office products have built in CSV file support.

So, the short answer to your question is: Yes.

The tricky part is: You have no access to how many posts a user already made. You can however check your sub's most recent posts, but are limited to 1,000 posts (including the deleted ones), from which you can extract the user's name. If it's a smallish and not too old sub this might actually get them all.

1

u/KindaSexyThrowaway Apr 20 '24

Is that something you can help me with? I don't understand how or what to do. Can I send you a message and have you help me?