import requestsimport jsondef translations(keyword): url = "https://fanyi.baidu.com/sug?kw={}".format(keyword) resp_content = requests.get(url).json()['data'][0]['v'] return resp_contentcontent = translations('good')print(content)