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