Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: alphaharris
Added: Mar 8, 2019 7:14 PM
Views: 37
Tags: no tags
  1. QUOTE_REQ = requests.get('https://favqs.com/api/qotd')
  2. QUOTE_RESP = QUOTE_REQ.json()
  3.  
  4. QUOTE = QUOTE_RESP['quote']['body'].replace(',', ",") \
  5.       + ' - ' + QUOTE_RESP['quote']['author']
  6. print(QUOTE)
  7.