Python bir süre sonra kendini kapatıyor

ProfAybars

Hectopat
Katılım
20 Ekim 2020
Mesajlar
131
Çözümler
1
Daha fazla  
Cinsiyet
Diğer
Arkadaşlar bir generator yaptım fakat kendi kendine bazen kapanıyor? Sebebini bilen var mı?
[CODE lang="python" title="Generator Kodu"]import random, string, requests, webbrowser, time
f=open("Valid Codes.txt", "w", encoding='utf-8')


print("""
▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄
█ █ █ █ █ █ █ █ █ █ █ █ █ ▄ █ █ ▄ █ █ █
█ ▄▄▄▄█ █▄█ █ ▄ █ ▄▄▄▄▄█▄ ▄█ █ ▄ █ █▄█ █ █▄█ █ ▄ █ █ █ █ █ ▄▄▄▄▄█
█ █ ▄▄█ █ █ █ █ █▄▄▄▄▄ █ █ █ █▄█ █ █ █ █▄█ █ █▄▄█▄█ █▄▄▄▄▄
█ █ █ █ ▄ █ █▄█ █▄▄▄▄▄ █ █ █ █ █▄ ▄█ ▄ ██ █ ▄▄ █▄▄▄▄▄ █
█ █▄▄█ █ █ █ █ █▄▄▄▄▄█ █ █ █ █ ▄ █ █ █ █ █▄█ █ ▄ █ █ █ █▄▄▄▄▄█ █
█▄▄▄▄▄▄▄█▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█ █▄▄▄█ █▄▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█



""")



while True:
code = ('').join(random.choices(string.ascii_letters + string.digits, k=16))
r = requests.get(f"https://discordapp.com/api/v6/entitlements/gift-codes/{code}?with_application=false&with_subscription_plan=true")
if r.status_code == 200:
print(f"Valid Nitro Code > discord.gift/{code}")
f.write(f"discord.gift/{code}\n")
else:
print(f"Invalid Nitro Code > discord.gift/{code}")



#Script by [/CODE]
 
Sanırım Discord nitro generator yapmaya çalışıyorsunuz.

Sunu deneyin: 20. satırdaki True terimini silin. Sadece while: kalsın.
 
Uyarı! Bu konu 5 yıl önce açıldı.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.

Technopat Haberler

Yeni konular

Geri
Yukarı