How would I accomplish selecting the following situation:
<div id="test_div">
<div id="sub_element">Some unimportant text</div>
A very important multi-line text to scrape
</div>
If I select it with "div#text_div", perform a scrape, it would show in preview the following text:
Some unimportant text
A very important multi-line text to scrape
But when I export it to csv it just shows as:
Some unimportant text
It is missing the text that is inside the #text_div, but outside of any sub div.
jQuery can perform it when selecting a text node of the #text_div, but not in the primary selector. How would I be able to select only "A very important multi-line text to scrape" or at least everything inside #text_div, AND to be able to export it to csv?