Excel VBAはスクレイピングができる。ここでは、Seleniumを使わずにWebDriverを使ってみる。静的なWebページであればWebDriverは不要だが、動的なページから情報を取得するためにはWebDriverが必要だ。Seleniumは使わなくても、大体のことはWebDriver経由でできる。
JSONパースのライブラリーとして一般的なVBA-JSONを使ってみた。 APIには「Dictionary」と「XMLHTML60」ライブラリを利用します。 参照設定で「Microsoft Scripting Runtime」と「Microsoft XML, v6.0」をONにしておきます。 呼び出し側では「CreateObject」での遅延バインディングで ...
expression A variable that represents an Application object. An Object value that represents the new Automation object instance. If the application is already running, CreateObject will create a new ...
The following example shows how to use the CreateObject method to create an instance of a custom business object, VbBusObj.VbBusObjCls. It also uses the Active Server Pages scripting to identify the ...