How to scrapy different annotation to the same Field in a sample?

3 views
Skip to first unread message

Henry John

unread,
Apr 13, 2017, 5:44:15 AM4/13/17
to portia-scraper
Hi, all
     this is the html fragment

    <div class="d-title">功能概述 <span class="d-sub"> FUNCTIONAL OVERVIEW</span></div>
<p class="d-list">○ 富含丰富的碳水化合物、维生素和微量元素,全方位补充宝宝所需营养。</p>
<p class="d-list">○ 满足宝宝多样化口味需求。</p>
<p class="d-list">○ 味道鲜美,口感顺滑,利于宝宝吞咽,促进宝宝肠道功能的提高。</p>
<p class="d-list">○ 为宝宝提供均衡营养,促进宝宝生长发育。</p>

    and Iwant to extract all the contents in  all <p> elements in a single field, named as function_overview.  Portial web will view each <P> element as an annotation. Then how to extract those annotations into a single filed?


Regards!
Reply all
Reply to author
Forward
0 new messages