Skip to content

Commit

Permalink
reddit
Browse files Browse the repository at this point in the history
  • Loading branch information
pew committed Feb 11, 2025
1 parent cd16c29 commit 8ce6c0c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion man/reddit.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
---
date created: Wednesday, July 17th 2019, 3:38:37 pm
date modified: Friday, March 29th 2024, 11:36:52 am
date modified: Tuesday, February 11th 2025, 5:52:09 am
tags:
---

# reddit

ehm... okay?

## get json for reddit post

append `.json` to the end of a reddit url

## get text for each reddit comment

```shell
jq -r '.[].data.children[].data | select(.body != null) | "---\n\(.body)"' < reddit.json
```

## get markdown version of reddit post

you need *jq* for this, at least it makes it easy.
Expand Down

0 comments on commit 8ce6c0c

Please sign in to comment.