|
楼主 |
发表于 2015-1-19 18:55
|
显示全部楼层
本帖最后由 onlycxb 于 2015-1-19 18:57 编辑
网抓分享:乐彩网
抓取排行榜及相关地址- Sub 乐彩网()
- Dim Url As String, Xml As Object, Html As Object, tb, lib
- Dim i, j
- Set Html = CreateObject("htmlfile")
- Set Xml = CreateObject("MSXML2.XMLHTTP")
- Url = "http://lebi.17500.cn/paihang/sort/rankDetail.php?flag=lianzhun&caizhong=3d&idx=wuma&type=1&typeid=0&days=7"
- With Xml
- .Open "GET", Url, False
- .send
- Html.body.innerhtml = Split(Split(.responseText, "<ul class=""listicon"">")(1), "</ul>")(0)
- End With
- Set tb = Html.all.tags("li")
- For i = 0 To tb.Length - 1
- If tb(i).classname = "" Then
- Debug.Print tb(i).Children(1).innertext; "链接地址:" & tb(i).Children(1).href
- End If
- Next i
- End Sub
复制代码 输出
3D免费试前独胆连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=dudan&type=1&typeid=0&days=7
3D免费试前双胆连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=shuangdan&type=1&typeid=0&days=7
3D免费试前三胆连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=sandan&type=1&typeid=0&days=7
3D免费试前杀一码连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=shayima&type=1&typeid=0&days=7
3D免费试前杀二码连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=shaliangma&type=1&typeid=0&days=7
3D免费试前杀三码连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=shasanma&type=1&typeid=0&days=7
3D免费试前五码连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=wuma&type=1&typeid=0&days=7
3D免费试前六码连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=liuma&type=1&typeid=0&days=7
3D免费试前定位连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=dingwei&type=1&typeid=0&days=7
3D免费试前定和值连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=shahewei&type=1&typeid=0&days=7
3D免费试前定跨度连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=shakuadu&type=1&typeid=0&days=7
3D免费试前组选连准排行榜链接地址:about:rankDetail.php?flag=lianzhun&caizhong=3d&idx=zuxuan&type=1&typeid=0&days=7 |
|