Collect
python
from redditharbor.dock.pipeline import collect
collect = collect(reddit_client, supabase_client, db_config)
From Subreddit
* `subreddit_submission`: Collects and stores submissions and associated users in specified subreddits.
* `subreddit_comment`: Collects and stores comments and associated users in specified subreddits.
* `subreddit_submission_and_comment`: Collects and stores submissions, comments and associated users in specified subreddits.
From User
* `submission_from_user`: Collects and stores submissions from specified user(s).
* `comment_from_user`: Collects and stores comments from specified user(s).
Keyword Search
* `submission_by_keyword`: Collects and stores submissions with specified keywords from given subreddits.
Download
python
from redditharbor.utils import download
* `submission.to_{filetype}`: Save submission data to .CSV, .JSON, .TXT, .Pickle, .JPEG and .PNG files.
* `comment.to_{filetype}`: Save comment data to .CSV, .JSON, .TXT, and .Pickle files.
* `user.to_{filetype}`: Save user data to .CSV, .JSON, .TXT, and .Pickle files.
Fetch
python
from redditharbor.utils import fetch
* `user.name`: Fetch user names from the Supabase table. Designed mainly for `collect.submission_from_user` and `collect.comment_from_user`.