Ripping All Links from a Website

by Dec 28, 2012

PowerShell 3.0 comes with a great new cmdlet: Invoke-WebRequest! You can use it for a zillion things, but it can also simply retrieve the content of a website. It will even do basic parsing, so opening a window with all links on that website is a piece of cake:

PS> $website = Invoke-WebRequest -UseBasicParsing -Uri
PS> $website.Links | Out-GridView

Twitter This Tip! ReTweet this Tip!