$ie = new-object -com "InternetExplorer.Application" $ie.navigate("http://www.qiushibaike.com/") $ie.visible = $true sleep -milliseconds 2500 $ID = $ie.Document.getElementById(‘qiushi_tag_96334609‘) $ID1 = $ID.getElementsByTagName(‘div‘) $ID2 = $ID.childNodes | where {$_.className -contains "content"} $ID2.innerText
时间: 2024-10-10 00:45:29