I'm pulling contact information (text) from a website and I can currently pull all the class data, using the following xpath
syntax:
//*[@id="nomapdata"]/div/div/div/div[2]/div[1]
Using this xpath
for the element, I get the following text as result:
Name
Title
Company Website
Phone Number
What I want to do, is to pull each of these elements individually, but the problem is that, the data is separated by <br> </br>
, and I haven't had success on isolating each element.
Below is an example of the HTML structure:
<div class="col-sm-d">
"
Name"<br>
"
Title"<br>
a href="www.website.com" target="_blank">http://www.website.com</a>
<br>
"
Phone: (555) 555-5555"<br>
The only element I am able to isolate is the website.
How can I isolate each data on this scenario?