initial commit
This commit is contained in:
13
hypr/scripts/quotes.py
Executable file
13
hypr/scripts/quotes.py
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import requests
|
||||
|
||||
res = requests.get('https://zenquotes.io/api/random')
|
||||
|
||||
if not res:
|
||||
exit(1)
|
||||
|
||||
json = res.json()
|
||||
data = json[0]
|
||||
|
||||
print(f"{data['q']}\n -- {data['a']}")
|
Reference in New Issue
Block a user