我有一个 html 网页网址http://teluguone.com/recipes/content/Andhra-Spicy-Mutton-Curry-Recipe-6-221.html
我需要从上面的 url 中提取描述文本。
我的要求是,我需要在多个 DIV 标签之间获取带有 html 标签的文本,
例子:
<div class="relatedarticals_info_bold"><h1>Recipe Name</h1></div> : Andhra Spicy Mutton Curry Recipe</div>
</div> <div id="relatedarticals_info2"> <div class="relatedarticals_info"> <div class="relatedarticals_info_bold">
<h1>Author</h1></div> : Teluguone</div> </div> <div id="relatedarticals_info2"> <div class="relatedarticals_info">
<div class="relatedarticals_info_bold"><h1>Preparation Time</h1></div> : 30 Mins</div> </div>etc.....?
我需要得到这样的输出:
Recipe Name: Andhra Spicy Mutton Curry Recipe Author: Teluguone
Preparation Time: 30 Mins etc...