Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Print Str Return NameLoad decorator_list Call NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Print BinOpMod Str Call NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareEq NameLoad Str body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return SubscriptLoad NameLoad Index Num decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num
N/A N/A sys N/A signal PyQt4.QtCore * PyQt4.QtGui * PyQt4.QtWebKit QWebPage save_webpage_screenshot N/A N/A url width height file_name N/A None N/A N/A Saves a screenshot of the webpage given in url into filename+".png"
    
    width and height, if given, are in pixels
    if not given, the browser's default dimensions will be used.
    
    Needs a call to window.print() from within the webpage.
    
    Example:
    
    save_webpage_screenshot(
        "http://www.example.com",
        "example",
        width=1024,
        height=768
    )
     N/A app N/A QApplication N/A sys argv N/A N/A N/A signal signal N/A signal SIGINT N/A signal SIG_DFL MyQWebPage N/A QWebPage N/A shouldInterruptJavaScript N/A N/A qwebpage N/A N/A N/A not interrupting N/A False N/A N/A pyqtSlot N/A N/A webpage N/A MyQWebPage N/A N/A N/A webpage setViewportSize N/A QSize N/A int width N/A int height print_error N/A N/A message lineNumber sourceID N/A N/A N/A N/A 
%(sourceID)s line %(lineNumber)i: 
  %(message)s N/A locals N/A N/A N/A webpage javaScriptConsoleMessage print_error N/A N/A file_name None N/A N/A result N/A onPrintRequested N/A N/A virtual_browser_window N/A N/A N/A image N/A QImage N/A N/A webpage viewportSize N/A QImage Format_ARGB32 N/A painter N/A QPainter image N/A N/A N/A virtual_browser_window render painter N/A N/A N/A painter end N/A N/A file_name None N/A N/A N/A N/A image save file_name N/A N/A byte_array N/A QByteArray N/A buffer N/A QBuffer byte_array N/A N/A N/A buffer open N/A QIODevice WriteOnly N/A N/A N/A image save buffer PNG N/A N/A N/A result append N/A str byte_array N/A N/A __name__ __main__ N/A N/A N/A file_name None N/A N/A N/A N/A N/A sys stdout write N/A result N/A 0 N/A N/A N/A sys exit 0 N/A N/A N/A N/A app quit N/A N/A N/A N/A N/A webpage printRequested connect onPrintRequested N/A N/A N/A N/A N/A webpage mainFrame load N/A QUrl url N/A N/A N/A app exec_ N/A N/A file_name None N/A N/A N/A result N/A 0 N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A save_webpage_screenshot N/A N/A sys argv N/A 1