[戻]-35535/親
WebView2によるスクレ―ピング
Wan
最初--me('tr');")
js.AppendLine("Array.prototype.forEach.call(TrElems, function(TrElem) {")
js.AppendLine(" hyou.push([]);")
js.AppendLine(" var TdElems = TrElem.getElementsByTagName('td');")
js.AppendLine(" Array.prototype.forEach.call(TdElems, function(TdElem) {")
js.AppendLine(" hyou[i].push(TdElem.textContent);")
js.AppendLine(" });")
js.AppendLine(" i=i+1;")
js.AppendLine("});")
js.AppendLine("return hyou;")
DataTable_Scraping = Await WebView21.ExecuteScriptAsync(js.ToString())
'読み込み結果を判定
If e.IsSuccess Then
‘ここで次のページへの移動用の要素をクリックしている。動作確認済み
‘getElementsByClassName('****')の要素数が1の場合は、終わり
Await WebView21.ExecuteScriptAsync(
"document.getElementsByClassName('****')[1].getElementsByTagName('a')[0].click();")<
-->続き
11/10 17:06
[編|消]
レスを書く
1番最初のレス
Child K-Tai