Change instance again

This commit is contained in:
Larsen Vallecillo 2022-07-28 18:19:29 -05:00 committed by GitHub
commit b47de9dbab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,11 +8,11 @@ import json
form = FieldStorage()
if "q" in form.keys():
api = requests.get("https://y.com.sb/api/v1/search?q=" + form["q"].value).json()
api = requests.get("https://yt.artemislena.eu/api/v1/search?q=" + form["q"].value).json()
elif "trending" in form.keys():
api = requests.get("https://y.com.sb/api/v1/trending").json()
api = requests.get("https://yt.artemislena.eu/api/v1/trending").json()
else:
api = requests.get("https://y.com.sb/api/v1/popular").json()
api = requests.get("https://yt.artemislena.eu/api/v1/popular").json()
print("Content-Type: text/plain;charset=UTF-8;\n");