#include <Inet.au3>
Local $Text[3] = ['性 别:', '出生日期:', '发证地:'], $sText, $z = 0
$Number = InputBox('身份证信息地查询', '请输入需要查询的身份证号码',370702198001011238)
If @error = 0 Then
$Source = _INetGetSource('http://qq.ip138.com/idsearch/index.asp?action=idcard&userid=' & $Number & '&B1=%B2%E9+%D1%AF')
$sRep = StringRegExpReplace($Source, '&nvbsp;| |\n|\r|\s', '')
ConsoleWrite($sRep)
$sReg = StringRegExp($sRep, '性别:</td>.+?tdc2">(.+?)</td>|出生日期:</td>.+?tdc2">(.+?)</td>|发证地:</td>.+?tdc2">(.+?)<br', 3)
For $i = 0 To UBound($sReg) -1
If $sReg[$i] = '' Then ContinueLoop
$sText &= $Text[$z] & $sReg[$i] & @CRLF & @CRLF
$z += 1
Next
MsgBox(0, '查询['&$Number&']结果如下', $sText)
EndIf
晕取字符错了啊 |