@cvp recently I met a new problem.
I can not open the website with user-agent request head when using load_url.
I tried this way, but it doesn’t work
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.104 Safari/537.36 Core/1.53.4882.400 QQBrowser/9.7.13059.400'}
Is there any way to solve this problem?
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()