|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
- Sub main()
- Dim token$, winHttp As Object, p&, strText$
- Set winHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
- With winHttp
- .Open "GET", "https://app.washie.com.hk/adcms/wb_index.php", False
- .send
- strText = .responseText
- token = Split(Split(strText, "<input name=""token"" type=""hidden"" value=""")(1), """")(0)
- .Open "POST", "https://app.washie.com.hk/adcms/wb_index.php", False
- .setRequestHeader "Referer", "https://app.washie.com.hk/adcms/wb_index.php"
- .setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
- .send "login=josephlaw&password=washie2017&button=Sumbit&token=" & token
- End With
- For p = 0 To 1 '设置翻页
- winHttp.Open "GET", "https://app.washie.com.hk/diymodule/Order_Detail_List.php?pageNum_Order_L=" & p & "&totalRows_Order_L=3856", False
- winHttp.send: strText = winHttp.responseText
- Debug.Print strText
- Stop
- Next
- End Sub
复制代码
|
评分
-
3
查看全部评分
-
|