我用VBA的直接抓取网站元素的,程序如下:
Private Sub yz_click()
Dim ie As Object
Dim myItem
Set ie = CreateObject("InternetExplorer.application")
With ie
.navigate "https://inv-veri.chinatax.gov.cn/"
.Visible = True
Do Until .ReadyState = 4
DoEvents
Loop
Set myItem = .document.getelementbyid("fpdm")
myItem.Value = [d3]
Set myItem = .document.getelementbyid("fphm")
myItem.Value = [e3]
Set myItem = .document.getelementbyid("kprq")
myItem.Value = [g3]
Set myItem = .document.getelementbyid("kjje")
myItem.Value = [f3]
End With
End Sub