You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`requests` library is used, to make HTTP requests in Python
4
+
-`quote.py` script is used to generate random quotes by fetching them from public API endpoint
5
+
6
+
## Setup instructions
7
+
8
+
- Install python from [here](https://www.python.org/.)
9
+
- Install requests library using command : `pip install requests`
10
+
11
+
## Detailed explanation of script, if needed
12
+
13
+
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.
14
+
15
+
## Output
16
+
17
+

18
+
19
+
In text Format the output would be as follows : <br>
20
+
Arnold Schwarzenegger - If you want to turn a vision into reality, you have to give 100% and never stop believing in your dream.
21
+
22
+
23
+
## Author(s)
24
+
25
+
[Mahima Churi](https://github.com/Mahitej28)
26
+
27
+
## Disclaimers, if any
28
+
29
+
Any puplic API can be used for generating quotes, also datasets from Kaggle can also be imported and used.
0 commit comments