Spaces:
Running
Running
Download pinger.py from CodeXDevloper/1.78bapi: direct link, hf CLI and curl.
- Browser
- Download file 310 Bytes
-
https://huggingface.co/spaces/CodeXDevloper/1.78bapi/resolve/main/pinger.py
- Command line
-
hf download hf://spaces/CodeXDevloper/1.78bapi/pinger.py
-
curl -L -o pinger.py https://huggingface.co/spaces/CodeXDevloper/1.78bapi/resolve/main/pinger.py
310 Bytes
| import time | |
| import requests | |
| # Yahan wahi URL dalein jisme ye file rakhi hai | |
| URL = "https://CodeXDevloper-1-78bapi.hf.space" | |
| while True: | |
| try: | |
| requests.get(URL) | |
| print(f"Pinged {URL} successfully!") | |
| except Exception as e: | |
| print(f"Error: {e}") | |
| time.sleep(300) # 5 minute | |