https://github.com/harshit98/xkcd-comic-service
Fetches web comics from XKCD platform using CLI built in Go 👻
https://github.com/harshit98/xkcd-comic-service
cli comic-book go requests
Last synced: about 2 months ago
JSON representation
Fetches web comics from XKCD platform using CLI built in Go 👻
- Host: GitHub
- URL: https://github.com/harshit98/xkcd-comic-service
- Owner: harshit98
- License: apache-2.0
- Created: 2020-05-30T21:46:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T05:02:50.000Z (about 6 years ago)
- Last Synced: 2025-10-27T02:59:40.581Z (8 months ago)
- Topics: cli, comic-book, go, requests
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
XKCD Comic Service
> This service fetches web comics from xkcd platform using CLI and downloads them as an image (only if you want!)
## 🎥 Demo Video
Link - https://youtu.be/paOWKCzcMl4
## Prerequisites
- Go 1.14
## Features
1. If you run the program without any command line args, it will fetch latest comic book.
2. You can fetch comic book according to comic book number.
3. Provided an option if user wants to save the comic. By default, it does not save the comic.
4. Option to print response from API in JSON format.
## Usage
- 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.
## Author
👤 **Harshit Prasad**
* Twitter: [@HarshitPrasad8](https://twitter.com/HarshitPrasad8)
* Github: [@harshit98](https://github.com/harshit98)
## 🤝 Contributing
Contributions, issues and feature requests are welcome!
## Show your support
Give a ⭐️ if you think this project is awesome!
## 📝 License
Copyright © 2020 [Harshit Prasad](https://github.com/harshit98).
This project is [MIT](https://github.com/harshit98/Comic-Ghost/blob/master/LICENSE) licensed.