Let's say I have the following website:
https://www.atcc.org/Products/All/CRL-2528.aspx#culturemethod When you go on this website, it displays a bunch of information. In my case, I just want to the temperature from the Culture Culture Conditions section.
when you scroll down the webpage, you will see a section called "Culture Conditions"
Atmosphere: air, 95%; carbon dioxide (CO2), 5% Temperature: 37°C using the requests library, I'm able to get to the HTML code of the page. when I save the HTML and search through it for my data it's towards the bottom
in this form
Culture Conditions </th> <td> <div><strong>Atmosphere: </strong>air, 95%; carbon dioxide (CO<sub>2</sub>), 5%</div><div><strong>Temperature: </strong>37°C</div> I'm not sure what to do after this. I looked into using BeautifulSoup to parse the HTML but i was not successful.
this is all the code that I have so far.
import requests url='https://www.atcc.org/Products/All/CRL-2528.aspx#culturemethod' page = requests.get(url) textPage = str(page.text) file = open('test2', 'w') file.write(textPage) file.close()