$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-12-20 01:52:43