Avatar of Kateli
Kateli
Flag for United States of America

asked on 

Powershell to pull a list of emails from website

I am trying to pull a list of emails from a website like linkedin or reddit for example
https://www.linkedin.com/search/results/people/?keywords=doctors%20in%20houston&origin=GLOBAL_SEARCH_HEADER

I was attempting to use iwr invoke-webrequest but am falling short here...

$data = iwr "https://www.linkedin.com/search/results/people/?keywords=doctors%20in%20houston&origin=GLOBAL_SEARCH_HEADER" -SessionVariable AQEDAQFdAfQCurAyA


$Links = $data.ParsedHtml.all.tags("a")  | Where{ $_.namespaceURI -like‘*’ }| ForEach-Object -MemberName href







Powershell

Avatar of undefined
Last Comment
DEMAN-BARCELO (MVP) Thierry

8/22/2022 - Mon