This service fetches web comics from xkcd platform using CLI and downloads them as an image (only if you want!)
Link - https://youtu.be/paOWKCzcMl4
- Go 1.14
- If you run the program without any command line args, it will fetch latest comic book.
- You can fetch comic book according to comic book number.
- Provided an option if user wants to save the comic. By default, it does not save the comic.
- Option to print response from API in JSON format.
-
Open your terminal and
cd
into the project repo. -
Build
main.go
go build -o fetch-me-comicbook
-
Run the executable binary file
./fetch-me-comicbook --num=324 --save=true --output=json
-
If you enabled
--save=true
flag, then you can find the downloaded comic within same directory.
π€ Harshit Prasad
- Twitter: @HarshitPrasad8
- Github: @harshit98
Contributions, issues and feature requests are welcome!
Give a βοΈ if you think this project is awesome!
Copyright Β© 2020 Harshit Prasad.
This project is MIT licensed.