如何使用C#/正则表达式提取百度网页中ul标签下的其他标签的内容 :标签前有---的是要获取的 5
<ulclass="tclearfix"><liclass="skyskyidlv3on">---<h1>19日(今天)</h1><bigclass="png40d01"...
<ul class="t clearfix">
<li class="sky skyid lv3 on">
---<h1>19日(今天)</h1>
<big class="png40 d01"></big>
<big class="png40 n01"></big>
---<p title="多云" class="wea">多云</p>
<p class="tem">
---<span>25</span>/<i>18℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
---<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv2">
<h1>20日(明天)</h1>
<big class="png40 d01"></big>
<big class="png40 n00"></big>
<p title="多云转晴" class="wea">多云转晴</p>
<p class="tem">
<span>28</span>/<i>17℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv2">
<h1>21日(后天)</h1>
<big class="png40 d01"></big>
<big class="png40 n02"></big>
<p title="多云转阴" class="wea">多云转阴</p>
<p class="tem">
<span>27</span>/<i>18℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv3">
<h1>22日(周日)</h1>
<big class="png40 d02"></big>
<big class="png40 n02"></big>
<p title="阴" class="wea">阴</p>
<p class="tem">
<span>26</span>/<i>18℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv3">
<h1>23日(周一)</h1>
<big class="png40 d01"></big>
<big class="png40 n00"></big>
<p title="多云转晴" class="wea">多云转晴</p>
<p class="tem">
<span>28</span>/<i>17℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv2">
<h1>24日(周二)</h1>
<big class="png40 d00"></big>
<big class="png40 n01"></big>
<p title="晴转多云" class="wea">晴转多云</p>
<p class="tem">
<span>31</span>/<i>16℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv2">
<h1>25日(周三)</h1>
<big class="png40 d01"></big>
<big class="png40 n07"></big>
<p title="多云转小雨" class="wea">多云转小雨</p>
<p class="tem">
<span>27</span>/<i>17℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
</ul> 展开
<li class="sky skyid lv3 on">
---<h1>19日(今天)</h1>
<big class="png40 d01"></big>
<big class="png40 n01"></big>
---<p title="多云" class="wea">多云</p>
<p class="tem">
---<span>25</span>/<i>18℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
---<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv2">
<h1>20日(明天)</h1>
<big class="png40 d01"></big>
<big class="png40 n00"></big>
<p title="多云转晴" class="wea">多云转晴</p>
<p class="tem">
<span>28</span>/<i>17℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv2">
<h1>21日(后天)</h1>
<big class="png40 d01"></big>
<big class="png40 n02"></big>
<p title="多云转阴" class="wea">多云转阴</p>
<p class="tem">
<span>27</span>/<i>18℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv3">
<h1>22日(周日)</h1>
<big class="png40 d02"></big>
<big class="png40 n02"></big>
<p title="阴" class="wea">阴</p>
<p class="tem">
<span>26</span>/<i>18℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv3">
<h1>23日(周一)</h1>
<big class="png40 d01"></big>
<big class="png40 n00"></big>
<p title="多云转晴" class="wea">多云转晴</p>
<p class="tem">
<span>28</span>/<i>17℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv2">
<h1>24日(周二)</h1>
<big class="png40 d00"></big>
<big class="png40 n01"></big>
<p title="晴转多云" class="wea">晴转多云</p>
<p class="tem">
<span>31</span>/<i>16℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
<li class="sky skyid lv2">
<h1>25日(周三)</h1>
<big class="png40 d01"></big>
<big class="png40 n07"></big>
<p title="多云转小雨" class="wea">多云转小雨</p>
<p class="tem">
<span>27</span>/<i>17℃</i>
</p>
<p class="win">
<em>
<span title="东风" class="E"></span>
<span title="东风" class="E"></span>
</em>
<i>微风</i>
</p>
<div class="slid"></div>
</li>
</ul> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询