实例:
曾沛慈
说明:
结果:
通过调用API接口加上JSON格式解析,可以获取我们想要的任何数据。
使用python代码获取数据、
import json
from urllib.request import urlopen
def getInformation(id):
response = urlopen('https://api.apiopen.top/musicRankingsDetails?type='+id).read().decode('utf-8')
responsejson = json.loads(response)
return responsejson.get('result')
print(getInformation('1')[0].get('artist_name'))
API接口
文章为作者独立观点,不代表股票交易接口观点