music-kraken-core/slavart.py

13 lines
376 B
Python
Raw Normal View History

2022-11-07 14:04:08 +00:00
import requests
API_ENDPOINT = "https://slavart.gamesdrive.net/api/search?q=Tekkno"
DOWNLOAD_ENDPOINT = "https://slavart-api.gamesdrive.net/api/download/track?id=153182274"
if __name__ == "__main__":
r = requests.get(DOWNLOAD_ENDPOINT, headers={
"Access-Control-Allow-Origin": "https://slavart.gamesdrive.net/"
})
print(r.status_code)
print(r.text)