Python API Wrapper for the Internet Chuck Norris Database http://www.icndb.com/api/
Requirements: Python 3.x
Usage:
>>> import icndb
>>> joke = icndb.fetchRandom()
>>> print(joke)
>>> print(_ for _ in icndb.fetchRandom(number=5, firstName="Octo", lastName="Cat"))More detailed example is located at tester.py.
List of available functions:
fetchRandom(number, firstName, lastName, limitTo, exclude)- fetchesnumberof random jokes from categories specified bylimitToorexcludewith main character's name replaced with specified byfirstName/lastName.fetchCategories- fetches list of available categoriesfetchNumberOfJokes- returns total amount of jokes in databasefetchByID(id, firstName, lastName)- returns single joke from Database with main character's name replaced with specified byfirstName/lastName