I'm trying to write a python script that retrieves boiling points, melting points, molecular weight, chemical structure, and density for chemical compounds I input.
I was looking through databases and found chemspipy and PubChemPy, but neither have the ability to retrieve all of the properties I need.
I have part of a script that uses chemspipy written, that works fine:
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)
But I still need to find a way to retrieve boiling / melting points.
(This is my first question on here, so apologies if it's in the wrong place!)