How can I get the time data behind two \"divs\" with BeautifulSoup?
6:00.00
I\'ve tried the f
div.div
selector is too ambiguous, to say the least.
Since, from what it appears, you are up to getting the "Duration at Rated Power (HH:MM)" field value, I would first locate the corresponding label
and then find the next text node matching the field format:
label = soup.find("label", text="Duration at Rated Power (HH:MM)")
value = label.find_next(text=re.compile(r"\d+:\d+")).strip()
print(value) # prints 6:00.00
(don't forget to import re
module)