Skip to content

Tag: python

Efficiently detect overlapping networks

I know how to detect overlapping networks. There are two ways to do this: by using netaddr’s “IPNetwork in IPNetwork” or ipaddress’s “overlaps” method. The question is how to find overlapping networks in array in most efficient way. At the moment, I use this code: It does t…

How can I scrape all the images from a website?

I have a website where I’d like to get all the images from the website. The website is kind of a dynamic in nature, I tried using google’s Agenty Chrome extension and followed the steps: I Choose one image that I want to extract using CSS selector, this will make the extension select the same othe…

Write to any users desktop in Python

Im new to Python so apologies if this is a basic question. I have successfully created an exe file that writes to my specific desktop directory, but I am struggling to find a way to write to any users desktop directory. The idea being my exe file can be copied onto any user profile and work the same. Here is