-1

LibreOffice Basic は初めてです。LibreOffice Calc でマクロを作成しようとしています。このマクロは、セルからウェステロスの高貴な家の名前 (スタークなど) を読み取り、A Wiki of Iceの関連ページで検索してその家の言葉を出力します。そして火。次のように動作するはずです。

ここに画像の説明を入力

ここに画像の説明を入力

擬似コードは次のとおりです。

Read HouseName from column A
Open HtmlFile at "http://www.awoiaf.westeros.org/index.php/House_" & HouseName
Iterate through HtmlFile to find line which begins "<table class="infobox infobox-body"" // Finds the info box for the page.
Read Each Row in the table until Row begins Words
Read the contents of the next <td> tag, and return this as a string.

私の問題は 2 行目です。HTML ファイルの読み方がわかりません。LibreOffice Basic でこれを行うにはどうすればよいですか?

4

1 に答える 1