1

I am currently using the following code to open a website:

import webbrowser
webbrowser.open('http://test.com')

I am now trying to save the open webpage as a .gif, any advise on how to do this please?

1 Answer 1

3

How about selenium and its save_screenshot()?

from selenium import webdriver


driver = webdriver.Firefox()
driver.get("http://test.com")

driver.save_screenshot("screenshot.png")

driver.close()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.