R
R
Ramzich2022-01-21 22:05:00
JavaScript
Ramzich, 2022-01-21 22:05:00

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

3 answer(s)
A
Andrey Danilov, 2015-11-23
@GloomySpodgeBob

30 lines of code

You shouldn't be discouraged. Competitions "who is shorter" - this is the so-called. Olympiad programming, which has little in common with beautiful code and, moreover, with what is in demand on the market.
It is better, indeed, to study all sorts of patterns - it is much more useful if without fanaticism.

D
danikkk, 2015-11-23
@danikkk

https://learn.javascript.ru/

C
Cat Frisky, 2022-01-22
@Ramzich

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 question

Ask a Question

731 491 924 answers to any question