求助,类似于下面图片里的切换标签,怎么采集内容?谢...
分食材介绍、搭配宜忌、菜谱做法、相关文章四个切换
如何用火车头采集里面的内容?
请高手帮忙分析下,谢谢了!!
看下源码是否有相关数据 leweizxl 发表于 2017-3-6 11:08
看下源码是否有相关数据
源码是:<span class="html-tag" style="font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;"><div <span class="html-attribute-name">class</span>="<span class="html-attribute-value">tabmenu</span>"></span><span class="html-tag" style="font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;"><a <span class="html-attribute-name">href</span>="<a class="html-attribute-value html-external-link" target="_blank" href="http://www.cnys.com/shicai/33046.html">/shicai/33046.html</a>" <span class="html-attribute-name">class</span>="<span class="html-attribute-value">on</span>"></span><span style="color: rgb(0, 0, 0); font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;">食材介绍</span><span class="html-tag" style="font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;"></a></span><span class="html-tag" style="font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;"><a <span class="html-attribute-name">href</span>="<a class="html-attribute-value html-external-link" target="_blank" href="http://www.cnys.com/shicai/33046_dapei.html">/shicai/33046_dapei.html</a>"></span><span style="color: rgb(0, 0, 0); font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;">搭配宜忌</span><span class="html-tag" style="font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;"></a></span><span class="html-tag" style="font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;"><a <span class="html-attribute-name">href</span>="<a class="html-attribute-value html-external-link" target="_blank" href="http://www.cnys.com/shicai/33046_caipu.html">/shicai/33046_caipu.html</a>"></span><span style="color: rgb(0, 0, 0); font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;">菜谱做法</span><span class="html-tag" style="font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;"></a></span><span class="html-tag" style="font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;"><a <span class="html-attribute-name">href</span>="<a class="html-attribute-value html-external-link" target="_blank" href="http://www.cnys.com/shicai/33046_news.html">/shicai/33046_news.html</a>"></span><span style="color: rgb(0, 0, 0); font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;">相关文章</span><span class="html-tag" style="font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;"></a></span><span class="html-tag" style="font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;"></div></span><span style="color: rgb(0, 0, 0); font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;">
</span>
每个都是想对应的地址,难道是用分页做??
leweizxl 发表于 2017-3-6 11:08
看下源码是否有相关数据
<div class="tabmenu"><a href="/shicai/33046.html" class="on">食材介绍</a><a href="/shicai/33046_dapei.html">搭配宜忌</a><a href="/shicai/33046_caipu.html">菜谱做法</a><a href="/shicai/33046_news.html">相关文章</a></div>
这是源码,请大神帮忙分析一下 191874905 发表于 2017-3-6 11:12
食材介绍搭配宜忌菜谱做法相关文章
可以做多页处理http://www.locoy.com/index/guide#关联多页.html leweizxl 发表于 2017-3-6 11:40
可以做多页处理http://www.locoy.com/index/guide#关联多页.html
谢谢大神,看来我猜对了,我了解下 leweizxl 发表于 2017-3-6 11:40
可以做多页处理http://www.locoy.com/index/guide#关联多页.html
搞定了,谢谢大神!!!
页:
[1]