import requests import jsonpath # url= 'https://my.hostyun.com/idcSystem.aspx?c=order&ptype=6' url= 'https://my.hostyun.com/idcSystem.aspx?c=ajax&dt=product&id=-1&p1=45' headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', 'Referer': 'https://my.hostyun.com/page.aspx?c=login', 'Cookie': '*****************************' } response = requests.get(url=url,headers=headers).json() # print(response) pstock=jsonpath.jsonpath(response,'$..pstock') print(pstock)