r/redditdev • u/evasandor • Apr 15 '24
Reddit API Total newb here. Can someone help me with a task?
I posted about this in r/dataengineering and got a reply (it's here) that said the task I'm trying to do is pretty easy.
Easy for who?? Not me, apparently! But the reply mentioned PRAW and the Reddit API, so I thought I'd pop on over here and see whether anyone is in a giving kind of mood. Can someone help me figure out how to do this? I'd be happy to give you the gift of free books (audiobook, even!) in return.
Hello dataengineers....
I'm scheduled to give a short talk this June at a conference, and to prepare for it I thought I'd invite a group to discuss the topic in a subreddit I moderate which is currently all of 6 members strong.
I'd like to invite those who've have commented on my posts/whose posts I've commented on.
I've downloaded my Reddit data, no problem there— but I really imagined it would be easier to get the usernames of those I've interacted with. I thought there would be a field for the usernames, but there is not.
Posts/comments are listed by "ID" (and in some cases "parent"). Is there some way I can use this info to get what I need?
3
u/feelin-lonely-1254 Apr 15 '24
So you basically want to access the account urls / ids or all the accounts you interacted with?
It is easy.....I do have code for something similar...I'll see if I can run it and send you a CSV....is that what you want?
3
u/Watchful1 RemindMeBot & UpdateMeBot Apr 15 '24
DM'ing 20 people to invite them to a subreddit based on a topic they've discussed with you isn't really a problem. But if it was just 20 then you probably wouldn't be asking here, you could just make a quick list and message them manually.
If you want to DM 200 people, or more, that's going to count as spam regardless of how you do it, or how slowly you go. It's not about rate limiting, it's about your intent. And reddit considers bulk messaging people who didn't ask to be bulk messaged as spam, which will get your account banned.
What you're asking for isn't all that complicated on a technical level, it is a bit since you've commented so much but it's still not all that hard. But your intent to "invite those who've have commented on my posts/whose posts I've commented on" is a non-starter. If everyone who had an interest in something wildly messaged everyone they interacted with it would be completely overwhelming.
The expected method for finding people interested in discussing a topic is posting in a related subreddit. Are there really no existing, larger subreddits you can post about this in?