We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cdb021f + 4fb882d commit 08c0cf3Copy full SHA for 08c0cf3
Python/quotes/README.md
@@ -0,0 +1,7 @@
1
+# Random inspirational quotes generator
2
+
3
+## Aim
4
+Aim fo the script is to generate random quotes everytime script is run
5
6
+## To use
7
+```python script.py```
Python/quotes/quote.py
@@ -0,0 +1,8 @@
+import requests
+from json import loads
+# makijng get request to forismatic API
+response = requests.get('http://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en')
+# printing the response of quote text and quoteAuthor
+print("Hey there! This is the quote for the day")
+## extracting name and author
8
+print('{quoteText} - {quoteAuthor}'.format(**loads(response.text)))
0 commit comments