我想编写一个Python脚本,以检索我输入的化合物的沸点、熔点、分子量、化学结构和密度。
我查看了数据库,并找到了chemspipy和PubChemPy,但都不能检索到我需要的所有属性。
我已经写了一部分使用chemspipy的脚本,它可以正常工作:
我查看了数据库,并找到了chemspipy和PubChemPy,但都不能检索到我需要的所有属性。
我已经写了一部分使用chemspipy的脚本,它可以正常工作:
from chemspipy import ChemSpider
import urllib
cs = ChemSpider('my_token')
def getImage(compound):
c = cs.search(compound)[0]
imgUrl = c.image_url
urllib.request.urlretrieve(imgUrl, c.common_name + '.png')
def getWeight(compound):
c = cs.search(compound)[0]
return(c.molecular_weight)
但我仍然需要找到一种检索沸点/熔点的方法。
(这是我在这里的第一个问题,如果放错地方了,请见谅!)