Web page titles from URL

Comments 0

Share to social media

Nothing wholly SQL Server-related this time but this is something that I have been meaning to write for ages.

While searching on the internet for content I gather loads of URLs that might be useful to me and not long after this I lose track of what content is to be found at each location. We could add some value to the URLS by keeping the page title with each one. So, step up PowerShell and the invoke-webrequest function.

Pass the function below a URL, or a set of URLs, and it will go and fetch each page title for you. You can use this to make a more complete reference section in your documentation, blog or simply as a reminder of what content the URL leads to.

Let me know if this helps you in the comments below.