代码
(curl "https://bbs.hupu.com/all-gambia").ParsedHtml.getElementsByClassName('t-info') | %{
$texts = $_.getElementsByTagName('span')
@{
url= $_.getElementsByTagName('a')[0].href.Replace("about:","https://bbs.hupu.com")
title = $texts[0].innerText
lights = $texts[1].innerText
replies = $texts[2].innerText
}
}| ConvertTo-Json