如何返回chemspipy(chem spider)中的实验或估计化学性质?

2024-05-28 19:33:08 发布

您现在位置:Python中文网/ 问答频道 /正文

以前有人问过这个问题,但答案中的链接不再有效/我不清楚答案

我有一份172种化合物的清单,我想确定它们的性质。我已经能够使用以下方法确定化合物的一些性质(例如结构和分子量):

from chemspipy import ChemSpider
cs = ChemSpider('my API key')
cmpd=cs.get_compound(61140)
cmpd.molecular_weight

我查阅了chemspipy(https://chemspipy.readthedocs.io/en/latest/guide/compound.html#compound-properties)的文档,没有找到任何与我感兴趣的属性(例如沸点、水溶性)相关的参数。我知道chem spider的网站上有这些信息,但如果有人知道如何用python返回这些属性,那就太好了


Tags: 方法答案fromimport属性链接cs结构
1条回答
网友
1楼 · 发布于 2024-05-28 19:33:08

你可能会在Chemistry Stack Exchange上得到更快的答案

问题是ChemSpider网站只定义了certain REST interfaces

有一个"demo API"允许访问您提到的属性,但是:

A set of endpoints that showcase demo versions of potential new APIs. To be able to make requests to these endpoints you will need to create an apikey that is associated with the "DemoAPI (Trial)" API product. Using a token associated with the "Compounds (Trial)" will result in an Error. Additionally, all this demo endpoints only work for a few specific example cases

该网站列出了大约5种化合物

简而言之,这就是网站。欢迎向皇家化学学会投诉,以扩大其网络界面

相关问题 更多 >

    热门问题