We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
to implement access to safety information from PubChem
The text was updated successfully, but these errors were encountered:
For GHS
import re import pubchempy as pcp import requests canon_smiles = get_canonical_smiles(input) cid = pcp.get_compounds(smiles, "smiles")[0].cid # regex GHS pictograms regex_ghs = "GHS[0-9]{2}" request_json = requests.get( f"https://pubchem.ncbi.nlm.nih.gov/rest/pug_view/data/compound/{cid}/JSON/?response_type=display&heading=GHS%20Classification" ).json() import regex as re return str(re.findall(regex_ghs, request_json)) ```
Sorry, something went wrong.
No branches or pull requests
to implement access to safety information from PubChem
The text was updated successfully, but these errors were encountered: