Search code examples
javascriptpythonbrowserprintscreen

How to capture html frame as an image


I need to open a webpage from Python and capture what I see in browser as an image(or rather what should be seen, because I want to execute it in background). The webpage contains JavaScript - one frame has caption dependent on script evaluation and I want it also to be captured.


Solution

  • It's feasible, at least, using PyQt + QWebKit (an example here and here).