How to Check Broken Links with 404 Error in Python

Links is one of the critical SEO factors for a Website. When creating or re-designing some pages, we cannot ignore Website audit especially in terms of finding and tracking broken links regularly. Although there are many online tools, it is still worth learning and implementing such a tool ourselves for fun. To simplify the programming complexity, I decided to use Python. With powerful Python libraries, it is fairly easy to crawl Web pages, parse HTML elements and check server response code.

Read more

How to Change Windows Gateway by Broadband Speed in Python

Plenty of enterprises allocate static IPs and gateways to employees’ devices for better network management. For example, limiting the internet connection speed, monitoring intranet activities and so on. In my company, the network administrator sets up two gateways for accessing different broadband services.  During my working time, I often need to switch the gateways to obtain better connection speed. Is there any good tool for dynamically changing gateways based on network speed? With the question, I spend some time googling relevant information and finally find out a solution in Python. Let’s take a glimpse of how to make it.

Read more