mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
23 lines
510 B
Plaintext
23 lines
510 B
Plaintext
# 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
|
|
```
|
|
|
|
Make a [Reddit Application](https://www.reddit.com/prefs/apps/) and initialize the loader with with your Reddit API credentials.
|
|
|
|
## Document Loader
|
|
|
|
See a [usage example](/docs/integrations/document_loaders/reddit).
|
|
|
|
|
|
```python
|
|
from langchain.document_loaders import RedditPostsLoader
|
|
```
|