找回密码
 加入
搜索
查看: 3940|回复: 7

[网络通信] 求高手帮我获取一个地址

  [复制链接]
发表于 2013-4-23 00:02:38 | 显示全部楼层 |阅读模式
http://www.bwlc.net/bulletin/index.jsp?id=3
这是我知道的一个大概的地址,点一下里面的“快乐8”选项卡会出现如下数据,我想获取里面的数据,但是找不到这数据的来源地址,请大侠帮帮忙,先谢了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2013-4-23 00:58:34 | 显示全部楼层
直接就有吧
#include <INet.au3>
$Url = 'http://www.bwlc.net/bulletin/index.jsp?id=3'
$str = _INetGetSource($Url, 1)
$str = BinaryToString($str, 4)
FileWrite('sss.x', $str)
ShellExecute('sss.x')
发表于 2013-4-23 06:37:13 | 显示全部楼层
玩球哦,有赢吗?
 楼主| 发表于 2013-4-23 19:13:49 | 显示全部楼层
回复 2# afan

感谢ing,这些是网页源码吧,大侠能帮忙写个抓取这些数据的正则吗
发表于 2013-4-23 19:23:53 | 显示全部楼层
#include <Array.au3>
#include <INet.au3>
$Url = 'http://www.bwlc.net/bulletin/index.jsp?id=3'
$str = _INetGetSource($Url, 1)
$str = BinaryToString($str, 4)
Local $aSR = StringRegExp($str, '(?i)dataBack\d+\V+\s+<td>(\d+)</td>\s+<td>(\V+)</td>\s+<td>(\d+)</td>\s+<td>(\V+)</td>', 3)
_ArrayDisplay($aSR, '')
发表于 2013-4-23 20:00:22 | 显示全部楼层
我在想楼主要的是不是这个。。
#include <INet.au3>
#include<array.au3>
$str = _INetGetSource('http://www.bwlc.net/bulletin/index.jsp?id=3')
$array=StringRegExp($str,'<td>(\d+)</td>\v+ +<td>(.+)</td>\v+ +<td>(\d\d)</td>\v+ +<td>(.+)</td>',3)
_ArrayDisplay($array)
 楼主| 发表于 2013-4-26 23:53:35 | 显示全部楼层
回复 5# afan


    正是我需要的,谢谢了!
 楼主| 发表于 2013-4-26 23:55:43 | 显示全部楼层
回复 6# zch11230


        正是我需要的,同样谢谢了!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-28 13:09 , Processed in 0.084269 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表