Referring to following
coding, when I run it, the Web_News.txt do not contain all contents within the web site.
However, when I go to the web site, and save the web page as a text file, which contain all contents within the web site.
I would like to know on how to code PowerScripts to save a web page into text file instead of using WebRequest.
Does anyone have any suggestions?
Thanks in advance for any suggestions
$url = "https://www.yahoo.com/news/"
(Invoke-WebRequest -Uri $url -SessionVariable Y -UseBasicParsing).Content | Out-File -FilePath D:\Web_News.txt
Thanks in advance for any suggestions