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接口剩下多少次调用?
检查是否计算为一个请求?
发布于 2014-11-28 17:39:51
您可以从alchemy_calls_left(api_key)函数中使用这里
不,它本身不算一个电话。
发布于 2015-03-22 16:57:14
此URL将返回每日通话使用的信息。
用您的密钥替换API_KEY。
KEY&outputMode=json
发布于 2014-11-24 15:37:27
您可以保持一个局部变量,该变量将跟踪API调用的数量,并在使用datetime.date from date模块更改日期时重置。
https://stackoverflow.com/questions/27107571
复制相似问题