Hello everyone I'm trying to pull certain text info from a website not all of the text is needed but I'm confused about how to do so when the text is in multiple divs. here is the code I'm looking at. But I get confused when there are multiple rows inside. I need to pull the "Number" title and the text (which is 837270), and the "Location" title and the text which is (Ohio)
<br>
<br>
</p>
</div>
</div>
<div class="row">
<div class="col-md-4">
<p>
<span class="text-muted">Number</span>
<br>
"837270"
</p>
</div>
<div class="col-md-4">
<p>
<span class="text-muted">Location</span>
<br>
"Ohio"
</p>
</div>
<div class="col-md-4">
<p>
<span class="text-muted">Office</span>
<be>
"Joanna"
</p>
</div>
</div>
<div class="row">
<div class="col-md-4">
<p>
<span class="text-muted">Date</span>
<be>
"07/01/2022"
</p>
</div>
<div class="col-md-4">
<p>
<span class="text-muted">Type</span>
<br>
"Business"
</p>
</div>
<div class="col-md-4">
<p>
<span class="text-muted">Status</span>
<br>
"Open"
</p>
</div>
</div>
</div>
</div>
</div>
I've tried this and it prints out none.
soup = BeautifulSoup(driver.page_source,'html.parser')
df = soup.find('div', id = "Location")
print(df.string)
I want to pull it and save it. any help would be appreciated thank you.