Last active
December 17, 2018 19:38
-
-
Save kirkdotcam/a6f73666595c0f6e66f3ebea9ebbe17c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
search_failure = [] | |
for drug in top200_names: | |
res = requests.get(f"https://cactus.nci.nih.gov/chemical/structure/{drug}/stdinchi") | |
if res.status_code == 404: | |
search_failure.append(drug) | |
else: | |
inchi_to_mol_file(res.text, drug) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment