2023-06-01 00:54:05 +00:00
|
|
|
# Reddit
|
|
|
|
|
|
|
|
>[Reddit](www.reddit.com) is an American social news aggregation, content rating, and discussion website.
|
|
|
|
|
|
|
|
## Installation and Setup
|
|
|
|
|
|
|
|
First, you need to install a python package.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pip install praw
|
|
|
|
```
|
|
|
|
|
2023-09-19 15:06:28 +00:00
|
|
|
Make a [Reddit Application](https://www.reddit.com/prefs/apps/) and initialize the loader with your Reddit API credentials.
|
2023-06-01 00:54:05 +00:00
|
|
|
|
|
|
|
## Document Loader
|
|
|
|
|
2023-07-25 04:20:32 +00:00
|
|
|
See a [usage example](/docs/integrations/document_loaders/reddit).
|
2023-06-01 00:54:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
from langchain.document_loaders import RedditPostsLoader
|
|
|
|
```
|