0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

vbsの作法 その65

Posted at

概要

vbsの作法、調べてみた。
練習問題、やってみた。

練習問題

Windows11でInternet Explorer11を起動して、スクレイピングせよ。

写真

image.png

サンプルコード

Dim objIE
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True
objIE.Navigate "https://ev2-prod-node-red-09632ac9-94e.herokuapp.com/list/table"
Do While objIE.Busy = True Or objIE.readyState <> 4
	WScript.Sleep 1000
Loop
Dim tr
Dim t
For Each tr In objIE.document.getElementsByTagName("tr")
	For Each t In tr.Children
		msgbox t.innerText
	Next
Next
Set objIE = Nothing





以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?