开发者

Trying to gran a screenshot of a tube website takes forever

using the code in Python Webkit making web-site screenshots using virtual framebuffer as it is to take a screenshot of a random tube video 开发者_JAVA百科and it just takes on forever plus it just eats up all my memory any suggestions?


You might want to try other drivers such as HtmlUnitDriver or ChromeDriver, if you do need Firefox try different versions, the firefox 8 alpha/beta takes half the ram. If you are not, try to maintain your seleminum session for multiple uses and websites as the display.start() browser = webdrive() to browswer.quit() overhead is quite high and slows things down. Also you can try using the vncserver method described here or Python and QtWebKit as this describes

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜