-1

So for below is my program,. my intention is to open the webpage and take screenshot of it. Any help or suggestions will be appreciated.

import webbrowser
import pyautogui, time

url = input()

# input 'https://stackoverflow.com/'

chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'

webbrowser.get(chrome_path).open(url)
time.sleep(10)
screenshot = pyautogui.screenshot()
screenshot.save("anothertest.png")

  • Does this answer your question? [How can I take a screenshot/image of a website using Python?](https://stackoverflow.com/questions/1197172/how-can-i-take-a-screenshot-image-of-a-website-using-python) – Zaraki Kenpachi Sep 22 '20 at 09:25

1 Answers1

0

I guess you can use Pyppeteer for this - but the method is similar