andrew-d / goscrape

Structured scraper for Go
25 stars 4 forks source link

Select text but ignore the sub tags #9

Open suntong opened 8 years ago

suntong commented 8 years ago

I need scrap something like this:

<div class="description">Something I want
 <div class="details">Something to ignore</div>
</div>

I.e., I need to scrap the text only in class="description", but not in class="details", how to do it with goscrape?

Further explanation.

suntong commented 8 years ago

Please refer to https://github.com/suntong/goscrape/issues/5 for the fix.