RedditReader #
Bases: BaseReader
Subreddit post and top-level comments reader for Reddit.
Source code in llama-index-integrations/readers/llama-index-readers-reddit/llama_index/readers/reddit/base.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
load_data #
load_data(subreddits: List[str], search_keys: List[str], post_limit: Optional[int] = [10]) -> List[Document]
Load text from relevant posts and top-level comments in subreddit(s), given keyword(s) for search.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
subreddits |
List[str]
|
List of subreddits you'd like to read from |
required |
search_keys |
List[str]
|
List of keywords you'd like to use to search from subreddit(s) |
required |
post_limit |
Optional[int]
|
Maximum number of posts per subreddit you'd like to read from, defaults to 10 |
[10]
|
Source code in llama-index-integrations/readers/llama-index-readers-reddit/llama_index/readers/reddit/base.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|