FauziIsyrinApridal
init
17fabdd
raw
history blame contribute delete
576 Bytes
import subprocess
scripts = [
"dosen_scrap.py",
"jadwal_scrap.py",
"jurusan_scrap.py",
"pnp_scrap.py",
"insta_scrap.py",
]
for script in scripts:
print(f"Menjalankan: {script}")
try:
result = subprocess.run(["python3", script], check=True, capture_output=True, text=True)
print(f"[{script}] Selesai dengan output:\n{result.stdout}")
if result.stderr:
print(f"[{script}] Warning/Error:\n{result.stderr}")
except subprocess.CalledProcessError as e:
print(f"[{script}] Gagal dijalankan:\n{e.stderr}")