From 664e5eb158d8f3c0ee74b2eb4e01b18c45221d63 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 27 Feb 2018 19:44:06 -0500 Subject: [PATCH] render implementation Signed-off-by: Kenneth Reitz --- requests_html.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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``).