Spaces:
Running
Running
File size: 221 Bytes
b2b2677 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import requests
import time
import os
space_url = os.getenv('SPACE_URL')
def fetch_url(url):
response = requests.get(url)
print(response.text)
while True:
fetch_url(space_url)
time.sleep(60) |