【发布时间】:2011-05-11 18:07:56
【问题描述】:
对于具有多个 DIV 的页面,如何仅从包含有用文本的 DIV 中获取内容并避免其他用于广告的 DIV 等。
例如这样的页面结构:
...
<div id="articlecopy">
<div class="advertising 1">Ads I do not want to fetch.</div>
<p>Useful texts go here</p>
<div class="advertising 2">Ads I do not want to fetch.</div>
<div class="related_articles_list">I do not want to read related articles so parse this part too</div>
</div>
...
在这个虚构的例子中,我想去掉广告的两个 DIV 和相关文章的 DIV。我想要的只是在
中获取有用的内容在父 DIV 中。
Pipe 能做到这一点吗?
谢谢。
【问题讨论】:
标签: yahoo-pipes