$url='https://es.search.yahoo.com/search?p=powershell' $result = Invoke-WebRequest $url $array=@($result.AllElements | Where Class -eq "lh-18 ").innerText for($i=0;$i -lt $array.Length;$i++) { if($array[$i] -match 'scripting'){ Write-Host 'Encontrado posición: ' ($i+1) `n'Texto: ' $array[$i] } }
Buscar una palabra en las descripciones de los resultados de una búsqueda en Yahoo (Web scraping, PowerShell)
Except where otherwise noted, Jesusninoc by Jesús N. is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.