Closed seancallaway closed 1 year ago
This may not be possible due to Reddit's new API limitations.
A single requests.get('https://www.reddit.com/r/lfg.json')
returns an HTTP 429 (Too many requests)
Actually, this works just fine. Just need to set the User-Agent
header.
Allow for the importation of subreddit rules during initial setup. /r/lfg's rules appear as follows:
This could be fetched via requests and can be loaded into
Rule
objects by iterating over "rules" takingshort_name
for the name anddescription
for the description.