So I'm scraping a table from a website and one of the rows looks like this: <td class="name">text1<em>text2</em></td>.
I can't figure out how to get the "text1" into one variable and the "text2" into another. The "text2" is easy enough to extract but the "text1" comes with the "text2" attached to it. I can remove the child but then the "text2" information is lost. Any ideas?
Get part of a child node?
Moderator: General Moderators
Re: Get part of a child node?
Depends how you're extracting all that.
(That's a hint for you to post your code.)
(That's a hint for you to post your code.)