louxingliang
Dec 17, 2018 - 07:56
I want to write a python script to replace me screenshot a web. I just need to input the website such as "www.google.com", then the script will save the whole page to local. How to realize it ?
I made a simple test script, but it seems don't work...
from ui import WebView, ImageContext
w=WebView()
w.load_url('http://www.baidu.com')
with ImageContext(w.width,w.hight) as ctx:
w.draw_snapshot()