harshit98 / XKCD-Comic-Service

Fetches web comics from XKCD platform using CLI built in Go πŸ‘»

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

🀝 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.
This project is MIT licensed.

About

Fetches web comics from XKCD platform using CLI built in Go πŸ‘»

License:Apache License 2.0


Languages

Language:Go 100.0%