news aggregation, content rating, and discussion website.This loader fetches the text from the Posts of Subreddits or Reddit users, using the praw Python package.Make a Reddit Application and initialize the loader with with your Reddit API credentials.from langchain.document_loaders import RedditPostsLoader# !pip install praw# load using 'subreddit' modeloader = RedditPostsLoader(    client_id="YOUR CLIENT ID",    client_secret="YOUR CLIENT SECRET",    user_agent="extractor by u/Master_Ocelot8179",    categories=["new", "hot"],  # List of categories to load posts from    mode="subreddit",    search_queries=[        "investing",        "wallstreetbets",    ],  # List of subreddits to load posts from    number_posts=20,  # Default value is 10)# # or load using 'username' mode# loader = RedditPostsLoader(#     client_id="YOUR CLIENT ID",#     client_secret="YOUR CLIENT SECRET",#     user_agent="extractor by u/Master_Ocelot8179",#     categories=['new', 'hot'],#     mode = 'username',#     search_queries=['ga3far', 'Master_Ocelot8179'],         # List of usernames to load posts from#     number_posts=20#     )# Note: Categories can be only of following value - "controversial" "hot" "new" "rising" "top"documents = loader.load()documents[:5]    [Document(page_content='Hello, I am not looking for investment advice. I will apply my own due diligence. However, I am interested if anyone knows as a UK resident how fees and exchange rate differences would impact performance?\n\nI am planning to create a pie of index funds (perhaps UK, US, europe) or find a fund with a good track record of long term growth at low rates. \n\nDoes anyone have any ideas?', metadata={'post_subreddit': 'r/investing', 'post_category': 'new', 'post_title': 'Long term retirement funds fees/exchange rate query', 'post_score': 1, 'post_id': '130pa6m', 'post_url': 'https://www.reddit.com/r/investing/comments/130pa6m/long_term_retirement_funds_feesexchange_rate_query/', 'post_author':
Reddit is an American social news aggregation, content rating, and discussion website.
Reddit is an American social news aggregation, content rating, and discussion website. ->: news aggregation, content rating, and discussion website.This loader fetches the text from the Posts of Subreddits or Reddit users, using the praw Python package.Make a Reddit Application and initialize the loader with with your Reddit API credentials.from langchain.document_loaders import RedditPostsLoader# !pip install praw# load using 'subreddit' modeloader = RedditPostsLoader(    client_id="YOUR CLIENT ID",    client_secret="YOUR CLIENT SECRET",    user_agent="extractor by u/Master_Ocelot8179",    categories=["new", "hot"],  # List of categories to load posts from    mode="subreddit",    search_queries=[        "investing",        "wallstreetbets",    ],  # List of subreddits to load posts from    number_posts=20,  # Default value is 10)# # or load using 'username' mode# loader = RedditPostsLoader(#     client_id="YOUR CLIENT ID",#     client_secret="YOUR CLIENT SECRET",#     user_agent="extractor by u/Master_Ocelot8179",#     categories=['new', 'hot'],#     mode = 'username',#     search_queries=['ga3far', 'Master_Ocelot8179'],         # List of usernames to load posts from#     number_posts=20#     )# Note: Categories can be only of following value - "controversial" "hot" "new" "rising" "top"documents = loader.load()documents[:5]    [Document(page_content='Hello, I am not looking for investment advice. I will apply my own due diligence. However, I am interested if anyone knows as a UK resident how fees and exchange rate differences would impact performance?\n\nI am planning to create a pie of index funds (perhaps UK, US, europe) or find a fund with a good track record of long term growth at low rates. \n\nDoes anyone have any ideas?', metadata={'post_subreddit': 'r/investing', 'post_category': 'new', 'post_title': 'Long term retirement funds fees/exchange rate query', 'post_score': 1, 'post_id': '130pa6m', 'post_url': 'https://www.reddit.com/r/investing/comments/130pa6m/long_term_retirement_funds_feesexchange_rate_query/', 'post_author':