diff --git a/requests_html.py b/requests_html.py index 848c439..9f65ab4 100644 --- a/requests_html.py +++ b/requests_html.py @@ -317,7 +317,7 @@ class HTML(BaseParser): def __repr__(self) -> str: return "".format(repr(self.url)) - def render(self, retries: int = 8, script: str = None, wait: float = 0.1, scrolldown=False, sleep: int = 0, reload: bool = True, timeout: int = 12): + def render(self, retries: int = 8, script: str = None, wait: float = 0.1, scrolldown=False, sleep: int = 0, reload: bool = True, timeout: int = 8): """Reloads the response in Chromium, and replaces HTML content with an updated version, with JavaScript executed. @@ -359,7 +359,7 @@ class HTML(BaseParser): Warning: the first time you run this method, it will download Chromium into your home directory (``~/.pyppeteer``). """ - async def _async_render(*, url: str, script: str = None, scrolldown, sleep: int, wait: float = 0.1, reload: bool = True, content: Optional[str], timeout: int = 8): + async def _async_render(*, url: str, script: str = None, scrolldown, sleep: int, wait: float, reload, content: Optional[str], timeout: int): try: browser = pyppeteer.launch(headless=True) page = await browser.newPage()