Advertisement
metalx1000

Get webpage source code

Nov 17th, 2014
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ie = New-Object -ComObject InternetExplorer.Application #background process
  2. #$ie.Visible = $true #to make it visible
  3. $ie.Navigate("http://google.com")
  4. $html = $ie.Document.Body.InnerText
  5. $ie.Quit()
  6. Remove-Variable $ie
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement