给你抓了901120000一组的数据。可以自己摸索。
- Sub t()
- Dim arr(1 To 44, 1 To 2), brr, k&
- With CreateObject("Microsoft.XMLHTTP")
- .Open "GET", "http://www.hscode.net/IntegrateQueries/YsInfoPager?pageIndex=1&taxCode=901120000&productName=", False
- .Send
- Do Until .ReadyState = 4
- DoEvents
- Loop
- brr = Split(.responsetext, "<div class=" & Chr(34) & "odd" & Chr(34) & ">")
- End With
- arr(1, 1) = Split(brr(1), "</div>")(0)
- arr(1, 2) = Split(Split(brr(1), ">")(2), "<")(0)
- arr(2, 1) = Split(brr(2), "<")(0)
- arr(2, 2) = Split(Split(brr(2), ">")(4), "<")(0)
- arr(3, 1) = Split(brr(3), "<")(0)
- arr(3, 2) = Split(Split(brr(3), ">")(4), "<")(0)
- For k = 4 To 44
- arr(k, 1) = Split(brr(k), "<")(0)
- arr(k, 2) = Split(Split(brr(k), ">")(2), "<")(0)
- Next k
- Range("a23").Resize(44, 2) = arr
- End Sub
复制代码
|