I have HTML that I am trying to scrape into a single record. It's basically structured like this.
<div attribute="scrapethis">
<div attribute="include">
...
</div>
<div attribute="include">
...
</div>
<div attribute="dontinclude">
...
</div>
</div>
I'd like to scrape the HTML of all elements that match the "include" attribute but not the elements that match the "dontinclude" element and merge all of the HTML into a single record. Is that possible?
I've tried creating elements like this, but it only returns the first "include" element. (I've also tried enabling and disabling the "multiple" setting for parent and child).
Parent: Element selector, div[attribute="scrapethis"]
Child: HTML selector, div[attribute="include"]