An open API service indexing awesome lists of open source software.

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 👻

Awesome Lists containing this project

README

          

XKCD Comic Service






Maintenance


Twitter: HarshitPrasad8

> 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.