Skip to content

Random Quote Generator code made using python and public API

License

Notifications You must be signed in to change notification settings

Mahitej28/Random-Quote-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Random Quote Generator

Description

  • requests library is used, to make HTTP requests in Python
  • quote.py script is used to generate random quotes by fetching them from public API endpoint

Setup instructions

  • Install python from here
  • Install requests library using command : pip install requests

Detailed explanation of script, if needed

The function generate_quote() make GET request to the public API endpoint, extracts the data in json format and displays in randomly to the user. It handles error if any in the else condition.

Output

In text Format the output would be as follows :
Arnold Schwarzenegger - If you want to turn a vision into reality, you have to give 100% and never stop believing in your dream.

Author

Mahima Churi

Disclaimers, if any

Any puplic API can be used for generating quotes, also datasets from Kaggle can also be imported and used.

About

Random Quote Generator code made using python and public API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages