mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 14:50:20 +00:00
+2
-2
@@ -245,7 +245,7 @@ class HTML(BaseParser):
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
script = '''
|
||||
script = \"\"\"
|
||||
() => {
|
||||
return {
|
||||
width: document.documentElement.clientWidth,
|
||||
@@ -253,7 +253,7 @@ class HTML(BaseParser):
|
||||
deviceScaleFactor: window.devicePixelRatio,
|
||||
}
|
||||
}
|
||||
'''
|
||||
\"\"\"
|
||||
|
||||
Returns the return value of'the executed ``script``, if any is provided.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user