def fetch_data(url): with request.urlopen(url) as f: urldata = f.read().decode('utf-8') return json.loads(urldata)
新的api地址是github上其他人爬虫所得,请不要用于商业目的
Sign in to make a reply
叫是先生
def fetch_data(url): with request.urlopen(url) as f: urldata = f.read().decode('utf-8') return json.loads(urldata)
新的api地址是github上其他人爬虫所得,请不要用于商业目的