PubChemPy icon indicating copy to clipboard operation
PubChemPy copied to clipboard

testing glucose example

Open pgreisen opened this issue 7 years ago • 1 comments

Hi , I am trying to test the glucose example to retrieve compunds from pubchem - I am using a jupyter notebook with python 3:

import pubchempy as pcp results = pcp.get_compounds('Glucose', 'name') results

which only returns one of the

5793 C([C@@H]1C@HO)O

where I would expect the different forms of glc - the type is a list. has there been any changes to this lately ?

pgreisen avatar Dec 18 '17 12:12 pgreisen

Yes, PubChem now manually override the search results for some common chemical chemical names. There is a section about this in the docs: Getting a full results list for common compound names

I should replace the glucose search example in the "Getting Started" section with some other compound that returns multiple results, to make things clearer.

mcs07 avatar Dec 18 '17 13:12 mcs07