我正在尝试使用 unirest 库运行 API 到 dmoz。 这是我的代码:
============================================= ==========================
import unirest
response = unirest.get("https://enclout-dmoz.p.mashape.com/show.json?auth_token=something&url=www.nike.com",
headers={
"X-Mashape-Key": "another_code"
}
)
html= response.body()
print html
但我收到一条错误消息:Typeerror the object 'dict' is not callable。
请您参考如下方法:
访问不带括号的字典
html = response.body
print html
