• louxingliang

    @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
    headers={
    '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'}
    w.loadRequest(url,request)

    Is there any way to solve this problem?

    posted in Pythonista read more
  • louxingliang

    Thanks again! Ready to try it.
    You are really familiar with the python lib !

    posted in Pythonista read more
  • louxingliang

    Hi, I've read the document of WebView on this website, but still I haven't find the method to do this.
    If I open a website which is very long, how to use script to roll down the page ..?

    posted in Pythonista read more
  • louxingliang

    Thanks! This script works quite well!

    posted in Pythonista read more
  • louxingliang

    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()
    

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!