Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xfgusta/4chanlog
Get all media links from the 4chan catalog
https://github.com/xfgusta/4chanlog
4chan 4chan-downloader c json-c libcurl
Last synced: 3 months ago
JSON representation
Get all media links from the 4chan catalog
- Host: GitHub
- URL: https://github.com/xfgusta/4chanlog
- Owner: xfgusta
- License: mit
- Archived: true
- Created: 2021-01-27T01:10:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-16T17:15:50.000Z (almost 4 years ago)
- Last Synced: 2024-09-21T11:02:28.128Z (3 months ago)
- Topics: 4chan, 4chan-downloader, c, json-c, libcurl
- Language: C
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 4chanlog
4chanlog - get all media links from the 4chan catalog
## Building on Linux
### Prerequisites
- `libcurl`
- `json-c`
- `gcc`, `clang`, or another C compiler### Build instruction
`4chanlog` github repo: https://github.com/xfgusta/4chanlog
```
$ make
```## Examples
Use `head` to get the very first 10 links (and width and height as well)
```
$ ./4chanlog a | head
https://i.4cdn.org/a/1611687714218.png (1400x720)
https://i.4cdn.org/a/1611684376166.png (1328x837)
https://i.4cdn.org/a/1611710223323.png (852x831)
https://i.4cdn.org/a/1611688572006.png (1052x1867)
https://i.4cdn.org/a/1611677138972.jpg (1280x720)
https://i.4cdn.org/a/1611693991934.jpg (258x385)
https://i.4cdn.org/a/1611709538333.jpg (587x501)
https://i.4cdn.org/a/1611710210208.png (713x440)
https://i.4cdn.org/a/1611701248409.png (388x505)
https://i.4cdn.org/a/1611705801081.jpg (800x676)
```Use `cut` to get the links (without width and height)
```
$ ./4chanlog a | head | cut -d ' ' -f 1
https://i.4cdn.org/a/1611684376166.png
https://i.4cdn.org/a/1611709084440.jpg
https://i.4cdn.org/a/1611709952497.jpg
https://i.4cdn.org/a/1611710040273.png
https://i.4cdn.org/a/1611688883147.png
https://i.4cdn.org/a/1611688572006.png
https://i.4cdn.org/a/1611649606360.jpg
https://i.4cdn.org/a/1611709438829.jpg
https://i.4cdn.org/a/1611701800484.jpg
https://i.4cdn.org/a/1611710073405.jpg
```Use `cut`, `xargs` and `wget` to save the files
```
$ ./4chanlog a | cut -d ' ' -f 1 | xargs wget
...
[output suppressed]
```