Last active
July 13, 2024 21:06
-
-
Save Sardonyx001/4314e7eb65da8b1b2a21e2ff11a5e031 to your computer and use it in GitHub Desktop.
Get all media urls from a 4chan thread
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://a.4cdn.org/[board]/thread/[thread].json \ | |
| jq ' | |
.posts[] | |
| if .tim != null then [.tim, .ext] else empty end | |
| map(tostring) | |
| "https://i.4cdn.org/[board]/" + .[0] + .[1]' | |
# Replace [board] and [thread] with board name and thread id respectively | |
# Output: | |
# "https://i.4cdn.org/w/1716958855504120.png" | |
# "https://i.4cdn.org/w/1717413679411085.png" | |
# "https://i.4cdn.org/w/1719249842147297.png" | |
# "https://i.4cdn.org/w/1719526974130200.png" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment