微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何查看AlchemyAPI剩余的电话数量?Python

AlchemyAPI的免费用户每天可以拨打1000个请求(http://www.alchemyapi.com/products/pricing/).

我一直在使用python访问API:

from alchemyapi import AlchemyAPI
demo_text = 'Yesterday dumb Bob destroyed my fancy iPhone in beautiful Denver, Colorado. I guess I will have to head over to the Apple Store and buy a new one.'
response = alchemyapi.keywords('text', demo_text)
json_output = json.dumps(response, indent=4)
print json_output

我知道我的呼叫用完了,因为请求是响应返回无.

如何查看我通过python接口留下的调用次数

支票会算作一个请求吗?

解决方法:

您可以使用Here中的alchemy_calls_left(api_key)函数

并且它不会被视为呼叫本身.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐