forked from n/quotes-bot-python
8 lines
214 B
Python
8 lines
214 B
Python
import requests
|
|
|
|
def fetchQuote(quoteId):
|
|
quote = requests.get("https://quotes.everypizza.im/image/" + quoteId)
|
|
if response.status_code == 200:
|
|
return response.content
|
|
else:
|
|
return None
|