I need to write a python script which opens a website and when the website is completly opened it takes a screenshot of the opened website.
I wrote sth like this:>
I believe that you need different solutions for different operating systems. Use sys.platform to find out on which platform you are on. The rest you have to figure out yourself, but a quick internet search revealed:
Take a screenshot via a python script. [Linux]
Fastest way to take a screenshot with python on windows
Take screenshot in Python on Mac OS X