python webpage screenshot code example Example: take screenshot of website python Mac: webkit2png Linux+KDE: khtml2png. Windows: webscreenshot