Skip to content

ExPl0iT-29/Jokes-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Jokes Generator

This Python script generates jokes by fetching data from the icanhazdadjoke API. It utilizes the requests library to make HTTP requests and retrieve jokes in JSON format.

Usage

  1. Clone the repository or download the code.py file.
  2. Make sure you have Python installed on your system.
  3. Run the script using the following command:
python code.py

Dependencies This script requires the requests library, which can be installed via pip:

Copy code pip install requests How it works The script sends a GET request to the icanhazdadjoke API and receives a response containing a joke in JSON format. It then extracts the joke from the JSON data and prints it to the console.

Error Handling If there is an error fetching the data from the API, the script will display an error message and prompt the user to try again.

https://devfolio.co/projects/jokes-generator-open-innovation-6bb5

About

A Random Joke Generator to make your mood happy!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages