我正在尝试从SGD数据库获取数据,但是无法从请求访问json文件。这是我的代码:
import requests
import json
SGD_BASE_URL = 'https://www.yeastgenome.org/webservice'
def print_interaction_genes():
url = SGD_BASE_URL + '/locus/S000000438'
print(url)
response = requests.get(url=url).json()
print_interaction_genes()
print(response.txt)