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.

Load comments

About the author

Jonathan Allen

See Profile

Jonathan Allen has been a SQL Server DBA since 1999, most enjoying performance tuning and development but also working with SSIS, SSRS to provide suitable business solutions. He is SQLSouthWest PASS Chapter Leader, blogs for Simple Talk, is a forum moderator at ask.sqlservercentral.com and is on Twitter. If you would like to find your nearest user group or just want to say hello then he would love to get an email from you.

Jonathan Allen's contributions