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
精彩评论