render implementation

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-02-27 19:44:06 -05:00
parent 8c3edeb8e1
commit 664e5eb158
+6 -1
View File
@@ -255,7 +255,12 @@ class HTML(BaseParser):
}
\"\"\"
Returns the return value of'the executed ``script``, if any is provided.
Returns the return value of'the executed ``script``, if any is provided:
.. code-block:: python
>>> r.html.render(script=script)
{'width': 800, 'height': 600, 'deviceScaleFactor': 1}
Warning: the first time you run this method, it will download
Chromium into your home directory (``~/.pyppeteer``).