You can use this as an api to fetch joke by using
from gitjoke.extractor import get_joke, get_jokes # Get all jokes in list jokes = get_jokes() # Get random joke joke = get_joke()
Example from the internal help command:
$ git-joke -h Display random git joke or all git jokes Usage: git-joke [--all] Options: -h --help Show this help message -v --version Show version -a --all Show all jokes
MIT