So each request it sends keeps printing
{"success":false,"code":7,"message":"Ad creation cooldown has not elapsed"}
and everytime it prints this I want it to break the loop and wait for 15 seconds then do the loop again. My Code:
headers = {'content-type': 'application/json'}
cookies = dict(_RoliData='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZXJzaW9uIjoxLCJwbGF5ZXJfZGF0YSI6eyJuYW1lIjoiNzZfNzciLCJpZCI6MTUxMjExNDM0fSwiaWF0IjoxNTk5NzIyMjM4LCJleHAiOjE2MDc0OTgyOTh9.qVFHIhsXKgQIZvLvJzH0WFZbcsgZE5Ou_H_0laIbFk4', _RoliVerification= 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZXJzaW9uIjoxLCJwbGF5ZXJfZGF0YSI6eyJuYW1lIjoiNzZfNzciLCJpZCI6MTUxMjExNDM0fSwiaWF0IjoxNTk5NzIyMjM4LCJleHAiOjE2MDc0OTgyOTh9.WtCyuWnKnIzA7PMUyCBqihXwaqfunZQkiMQd1n6s6-Q')
payload = json.dumps({"player_id":151211434,"offer_item_ids":[1241224444,20573078,187483689,24826811],"request_item_ids":[144506778,96095042,1533893,1051578],"request_tags":[]})
while True:
g = requests.post('https://www.rolimons.com/tradeapi/create', headers=headers, data=payload, cookies=cookies)
print(g.text)