This year again my blog was one in pool of Top-50 PowerShell Blogs in the world, and considering the fact that I bought this domain like 8 months back and was previously writing and posting on my old blog (http:\\Geekeefy.wordpress.com) but, still making to the list is amazing! 😀 and I truly feel grateful for it.
I noticed that in this list the ranking is based on Alexa Global Score, so I wanted to run a lookup against these blogs myself to get their Alexa ranking. Maybe just to track my progress or something. After a minute or two of googling I found the following implementation in Python’s ‘BeautifulSoup’ module, to obtain the global ranks from Alexa website.
Looking at this implementation, it is very clear it can be written in PowerShell with
Invoke-RestMethod cmdlets and it worked!
Web Scraping Blog URLs with PowerShell
But before we can begin to run this again every blog in the list, we’ve to first obtain the URLs of top-50 PowerShell blogs from that page and I ain’t going to do that manually. So I’m going web-scrape that data from the web page, and filter out some links using keywords like in the following screenshot –
I feel some very good blogs are missing from this list, so I’m adding few myself. Following are the URL’s of top 50 PowerShell Blog in the world obtained after web scraping.
Invoke-RestMethod to Alexa website with the domain name in a function to accept pipeline inputs, which will make it easier to call.
I was just thinking – What if can pump these Global Ranks of each blog as a Metric datum to AWS CloudWatch everyday to see the trends of each blog over a period of time, like in this port: https://4sysops.com/archives/publish-aws-custom-metrics-with-powershell/ Then it would be amazing!
Thank you, for taking out some time to read this, bye. Have a nice day.
My new book : PowerShell Scripting Guide to Python
This PowerShell Scripting guide to Python is designed to make readers familiar with syntax, semantics and core concepts of Python language, in an approach that readers can totally relate with the concepts of PowerShell already in their arsenal, to learn Python fast and effectively, such that it sticks with readers for longer time.
“Use what you know to learn what you don’t. ” also known as Associative learning.
Book follows a comparative method to jump start readers journey in Python, but who is the target audience? and who should read this book –
- Any System Administrator who want to step into Development or Programming roles, and even if you don’t want to be a developer, knowledge of another scripting language will make your skill set more robust.
- Python Developers who want to learn PowerShell scripting and understand its ease of user and importance to manage any platform.
Python is one of the top programming languages and in fast changing IT scenarios to DevOps and Cloudto the future – Data Science, Artificial Intelligence (AI) and Machine Learning Python is a must know.
But this PowerShell Scripting guide to Python would be very helpful for you if you already have some knowledge of PowerShell
NOTE! This is a Leanpub “Agile-published” book. That means the book is currently unfinished and in-progress. As I continue to complete the chapters, we will re-publish the book with the new and updated content. Readers will receive an email once a new version is published!
While the book is in progress, please review it and send any feedback or error corrections at [email protected]