python
import requests
import json
import jsonpath
url = 'https://www.lagou.com/lbs/getAllCitySearchLabels.json'
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36'
}
response = requests.get(url,headers=headers)
dict_data = json.loads(response.content)
result = jsonpath.jsonpath(dict_data,'$..A..name')
print(result)