Answer the question
In order to leave comments, you need to log in
Hello everyone, how can I implement a POST/search method that returns data from a Json file with a delay of 60 seconds for example?
Please tell me how to accomplish this task.
Answer the question
In order to leave comments, you need to log in
30 lines of code
in most cases, the get method is enough to read the data
import requests
import time
url = 'url адресс файла'
def get_data(url):
response = requests.get(url)
if response.status_code == 200:
time.sleep(60)
return response.json()
get_data(url)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question