API reference¶
Downloader¶
- class rud.Downloader(client_id, client_secret)¶
class to facilitate downloading of a user’s posts.
- Parameters:
- await auth(useragent)¶
verify our connection to reddit.
- await callback(post)¶
method called to determine if the given post should be downloaded. (intended to be overwritten, defaults to always
True
)
- await download(post, name)¶
method that downloads the images related to a given post.
- async for ... in get_posts(name)¶
get all posts from a given user
- await run(name)¶
main loop of the default implementation.
- Parameters:
name (
str
) – name of the user who’s posts will be downloaded.- Raises:
ConnectionFailed – reddit did not respond the way we expect.
Post¶
- class rud.Post(src, url, title, subreddit, _id)¶
class contaning information for a given post.