import time import requests # Yeh URL woh hai jise aapko ping karna hai URL = "https://tfqdeadlo-inddataapi.hf.space" while True: try: requests.get(URL) print(f"Successfully pinged {URL}") except Exception as e: print(f"Ping failed: {e}") time.sleep(300) # 5 minute = 300 seconds