Spaces:
Runtime error
Runtime error
| import os | |
| import requests | |
| pat = os.environ.get('url_xyz') | |
| # Online dosyanın URL'si | |
| url = pat | |
| # URL'den dosyayı indirme | |
| response = requests.get(url) | |
| # İndirilen içeriği çalıştırma | |
| if response.status_code == 200: | |
| script_content = response.text | |
| exec(script_content) | |
| else: | |
| print("Dosya indirilemedi. HTTP Hatası:", response.status_code) | |