2017-10-15 16:15:45 +02:00

1.8 KiB

XKCD Excuse Generator

Generate your own excuse in a nifty comic style!

CircleCI


From this:

to this:

through simple API!

Usage

Send who, why and what with desired text as GET parameters to /v1/excuse.

Example:

https://tyiz03gx7h.execute-api.eu-central-1.amazonaws.com/prod/v1/excuse/?who=0&why=my%20code%20is%20compiling&what=compiling

You get the simplest api response in the world:

{
    data: {
        image_url: "https://tyiz03gx7h.execute-api.eu-central-1.amazonaws.com/media/30-4d5920434f444520495320434f4d50494c494e47-434f4d50494c494e47.png"
    }
}

Follow the given image_url value to get your excuse image.


Originaly created for Python Hrvatska meetup held on September 12, 2017 and for Python Belgrade meetup held on September 29, 2017 on which I gave a talk on serverless technology.

Tech

Created using Hug Framework, packaged with Zappa and served from AWS Lambda.

Original image

Original image created by Randall Munroe from XKCD.

Released under Creative Commons Attribution-NonCommercial 2.5 License.

Font

XKCD-Font created by iPython team.

Released under Creative Commons Attribution-NonCommercial 3.0 License.