import requests
r = requests.get('https://www.ricsfirms.com/umbraco/api/surveyorSearchApi/results?location=United%20Kingdom&firmName=&lon=-5.2235136&lat=50.2307777&boxId=14821&country=GB&page=1')
data = r.json()
for office in data['resultOffices']:
print(office['firmId'])
print(office['firmName'])
print(' -')
在返回JSON时,请尝试以下操作:
相关问题 更多 >
编程相关推荐