【发布时间】:2020-09-22 09:11:34
【问题描述】:
所以下面是我的程序,。我的意图是打开网页并截图。任何帮助或建议将不胜感激。
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")
【问题讨论】:
标签: python python-3.x web-scraping pyautogui