Skip to content
CrossNoxPublic

About

No description, website, or topics provided.

Resources

Stars

9 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dadjokes

icanhazdadjoke API wrapper, to programatically cheer your code up.

Installation

pip install dadjokes

Usage

Example

from dadjokes import Dadjoke
dadjoke = Dadjoke()
print(dadjoke.joke)

The previous snippet will print a random joke.

Dadjoke objects can be built from an id as well. You can get those calling the .id property of a Dadjoke. If you are using this in a Slack app, you might find the .as_slack property useful.

You can use the iterable DadjokeSearch iterable class to search jokes by term, with an optional limit.

cli

Please check available options with:

dadjokes -h

About

No description, website, or topics provided.

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages