pubchem

How to extract 'Odor' information from PubChem using BeautifulSoup

How to extract 'Odor' information from PubChem using BeautifulSoup Question: I wrote the following Python code extract ‘odor’ information from PubChem for a particular molecule; in this case molecule nonanal (CID=31289) The webpage for this molecule is: https://pubchem.ncbi.nlm.nih.gov/compound/31289#section=Odor import requests from bs4 import BeautifulSoup url = ‘https://pubchem.ncbi.nlm.nih.gov/compound/31289#section=Odor’ page = requests.get(url) soup = BeautifulSoup(page.content, ‘html.parser’) odor_section …

Total answers: 1