我正在使用ghost.py来获取网页的屏幕截图。但该脚本没有捕获页面上的任何图像。我设置了download_images = True - 但这似乎不起作用。
我的代码:
from ghost import Ghost
ghost = Ghost(wait_timeout=4, download_images = True) #download_images not working
ghost.open('http://sex-offender.vsp.virginia.gov/sor/policy.html')
ghost.capture_to('page.png')
答案 0 :(得分:1)
我无法重现你的问题,它在我的问题上没有问题。我正在使用Python 3。
答案 1 :(得分:0)
后人:
仅在使用python 2.7时才会出现此问题。如果你使用python 3.3没问题。