mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-07-26 18:22:50 +02:00
14 lines
303 B
Python
Executable file
14 lines
303 B
Python
Executable file
#!/usr/bin/python3
|
|
import requests
|
|
import json
|
|
|
|
try:
|
|
req = requests.get("https://api.quotable.io/random").text
|
|
res = json.loads(req)
|
|
except:
|
|
res = {
|
|
"content": "I can't get quotes, you are not online right now",
|
|
"author": "quote widget"
|
|
}
|
|
print(json.dumps(res))
|
|
|