-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhf.py
18 lines (16 loc) · 796 Bytes
/
hf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import requests
url = 'https://huggingface.co/spaces/tracinginsights/api/wdc' # Replace with the URL of the website you want to ping
url1 = 'https://huggingface.co/spaces/tracinginsights/2018/wdc'
url2 = 'https://huggingface.co/spaces/tracinginsights/2019/wdc'
url3 = 'https://huggingface.co/spaces/tracinginsights/2020/wdc'
url4 = 'https://huggingface.co/spaces/tracinginsights/2021/wdc'
url5 = 'https://huggingface.co/spaces/tracinginsights/2022/wdc'
url6 = 'https://huggingface.co/spaces/tracinginsights/2023/wdc'
response = requests.get(url)
response1 = requests.get(url1)
response2 = requests.get(url2)
response3 = requests.get(url3)
response4 = requests.get(url4)
response5 = requests.get(url5)
response6 = requests.get(url6)
print(f'Response from {url}: {response.status_code}')