I am trying to extract this website using VBA
This is the HTML I want to Target
<div class="claim"> <div num="1" id="US-6627754-B2-CLM-00001" class="claim">
to get data for various numbers, only constant things is
<div class ="claims" and class ="claim"
rest of the html is dynamic.
following code just works fine for first element.
oHtml.getElementsByClassName("claim").Item.innerHTML
for this case
oHtml.getElementsByTagName("div")(90).innerHTML
also gives desired result.
I don't have basic knowledge of HTML or VBA.
I know that this is not correct as it gives duplicate entry one for div class="claim" and other for class="claim" and div(90) is not always constant.
How to just target
<div class = "claim"
Tried oHtml.getElementsByTagName("div")(90).getElementsByClassName("claim").Item.innerHTML
but did not gave results. For this specific website it is at div 90. again its not constant.