diff --git a/requests_html.py b/requests_html.py index 4a84c20..e9e455b 100644 --- a/requests_html.py +++ b/requests_html.py @@ -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``).