Download images from 4chan
- Download all the images from a 4chan forum.
- No dependincies, no extra modules required.
- You can import this package into your go project and use it
- Ensure your go version is >= 1.16
- Clone the repository
git clone https://github.com/DaKidReturns/gochan
- Go into the folder gochan
$ cd gochan/example
where you will find the example code asmain.go
- Run
go build -o gochan
- Now that you have compiled your source you can use it by
$ ./gochan [4chan-urlname]
-
Ensure your go version is >= 1.16
-
Run the command
go get github.com/DaKidReturns/gochan
-
Use it in your project by the import statement
import "github.com/DaKidReturns/gochan"
or
import( "github.com/DaKidReturns/gochan" )
it will be imported as
gochan
.
- Add a progress bar to show the currently downloading image
- Currently it saves the pictures to the Directory
(HOME)/Pictures/Gochan
and takes only one command line argument - I plan to do something with concurrency in golang, like download multiple files at once. (after I learn concurrency in golang)
- Create better Documentation
- Add a Logging feature
- Add an option for saving to custom directories
- I wanted to learn golang
- I wanted to download all the images from a forum on 4chan the one that contains a lot of technical drawings
So I figured why not create a web scaper for it ;-)