https://github.com/catdad-experiments/reddit-freelance-study
https://github.com/catdad-experiments/reddit-freelance-study
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/catdad-experiments/reddit-freelance-study
- Owner: catdad-experiments
- Created: 2019-02-10T20:43:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T03:19:19.000Z (about 7 years ago)
- Last Synced: 2025-07-25T21:54:07.567Z (10 months ago)
- Language: JavaScript
- Size: 89.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Reddit Freelance Study
1. Go to https://www.reddit.com/prefs/apps
2. Create a "web app"
3. Set the `rediret uri` to `http://127.0.0.1:8000/auth/reddit/callback`
4. Create a `.env` file with `APP_ID` and `APP_SECRET` based on the values provided when you create the app
5. Start the app:
```bash
npx cross-env PORT=8000 npm run exec -- node server.js
```
6. Go to http://localhost:8000/
7. Click "login with reddit" to authorize the app and get a token
8. Enter the name of the subreddit in the box and click "get posts"
9. When that is done, click "breakout posts"
_Note: before I gotget this:_
```bash
curl -H 'Authorization: ' -H 'User-Agent: web:test-app-web:v1.0.0' https://api.reddit.com/comments/a8svie | json echo --pretty > out.json
```
This returns the post (type `t3`) as well as replies (type `t1`)... not sure if batching works on this route