reddit / devvit

Reddit for Developers
https://developers.reddit.com
BSD 3-Clause "New" or "Revised" License
59 stars 13 forks source link

A way to retrieve posts based on domain #75

Open fsvreddit opened 3 months ago

fsvreddit commented 3 months ago

PRAW provides a way to retrieve a listing of posts that are from a specific domain - see here.

This is also possible via Reddit itself - the equivalent would be something like this: https://www.reddit.com/domain/bbc.co.uk.json

My use case here is identifying domains that may be spam. I would count the number of distinct accounts submitting from that domain, if it's just one or two users, the domain might be suspicious and I would flag it to sub moderators.