Skip to content

Commit

Permalink
Merge pull request psf#120 from miyakogi/patch-1
Browse files Browse the repository at this point in the history
Pyppeteer's api has been changed
  • Loading branch information
kennethreitz committed Mar 11, 2018
2 parents c0680d3 + c46c66b commit 5b0bfbd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 30 deletions.
53 changes: 24 additions & 29 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion requests_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def render(self, retries: int = 8, script: str = None, wait: float = 0.2, scroll
"""
async def _async_render(*, url: str, script: str = None, scrolldown, sleep: int, wait: float, reload, content: Optional[str], timeout: Union[float, int]):
try:
browser = pyppeteer.launch(headless=True, args=['--no-sandbox'])
browser = await pyppeteer.launch(headless=True, args=['--no-sandbox'])
page = await browser.newPage()

# Wait before rendering the page, to prevent timeouts.
Expand Down

0 comments on commit 5b0bfbd

Please sign in to comment.