Merhaba, aşağıdaki verdiğim kodlarla başka apiden 15 saniyede 1 veri çekebiliyorum. Ama paribu sitesinde 1 kere çekince py kapanıyor. Düzeltmem için yardımcı olabilir misiniz?
import requests
import json
import time
import xlwings,pandas
wb = xlwings.Book('paribu.xlsx').sheets('Sheet1')#change workbook name and sheet name as per your excel file
while True:
URL = "https://www.paribu.com/ticker"
headers = {'User-agent': 'ParibuApp/332 ("+v.Platform.OS+" "+v.Platform.Version+")'}
req = requests.get(URL,headers=headers)
text_data= req.text
json_dict= json.loads(text_data)
wb.range('a1').options(pandas.DataFrame,index=True).value = pandas.DataFrame(json_dict)
time.sleep(15)