网页抓取数据失败,请大神看一下吧,8个月没搞VBA了
excel吧
全部回复
仅看楼主
level 12
Sub dd()
Dim http
Set http = CreateObject("Microsoft.XMLHTTP")
http.Open "POST", "https://baike.so.com/doc/2508820-2651079.html", False
http.send ""
If http.Status = 200 Then
Range("a1") = http.responseText
End If
End Sub
2018年11月16日 12点11分 1
level 12
老是拒绝访问,70 什么鬼,以前8个月前还好用的
2018年11月16日 12点11分 2
level 9
这是抓的包,改GET了
2018年11月16日 13点11分 3
level 12
换个网站就没问题i,估计360网站本身的问题
2018年11月16日 14点11分 4
level 12
不是网站的问题,能告诉我怎么改吗?
2018年11月19日 02点11分 5
level 12
10元微信小红包,一点小意思呢
2018年11月19日 10点11分 6
level 12
再顶一下
2018年11月20日 00点11分 7
level 12
问题解决了,换了个win7系统,代码没有问题。谢谢大家的帮助!
2018年12月02日 00点12分 8
1