Skip to content

Fetches web comics from XKCD platform using CLI built in Go 👻

License

Notifications You must be signed in to change notification settings

harshit98/XKCD-Comic-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 👻

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages