From d21cdc28fa8100b3a294a1c0fdb7d3b276e38cb4 Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Thu, 28 Oct 2021 16:27:30 +0200 Subject: [PATCH] Location of pyppeteer downloaded Chromium changed in v0.0.20 --- README.rst | 2 +- docs/source/index.rst | 2 +- requests_html.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 793f80a..8b90267 100644 --- a/README.rst +++ b/README.rst @@ -228,7 +228,7 @@ Or you can do this async also: The rest of the code operates the same way as the synchronous version except that ``results`` is a list containing multiple response objects however the same basic processes can be applied as above to extract the data you want. Note, the first time you ever run the ``render()`` method, it will download -Chromium into your home directory (e.g. ``~/.pyppeteer/``). This only happens +Chromium into your home directory (e.g. ``~/.local/share/pyppeteer/``). This only happens once. Using without Requests diff --git a/docs/source/index.rst b/docs/source/index.rst index e738ecd..6e6333b 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -219,7 +219,7 @@ Or you can do this async also: '' Note, the first time you ever run the ``render()`` method, it will download -Chromium into your home directory (e.g. ``~/.pyppeteer/``). This only happens +Chromium into your home directory (e.g. ``~/.local/share/pyppeteer/``). This only happens once. You may also need to install a few `Linux packages `_ to get pyppeteer working. Pagination diff --git a/requests_html.py b/requests_html.py index 48e7fb2..59037b6 100644 --- a/requests_html.py +++ b/requests_html.py @@ -643,7 +643,7 @@ def render(self, retries: int = 8, script: str = None, wait: float = 0.2, scroll {'width': 800, 'height': 600, 'deviceScaleFactor': 1} Warning: the first time you run this method, it will download - Chromium into your home directory (``~/.pyppeteer``). + Chromium into your home directory (``~/.local/share/pyppeteer``). """ self.browser = self.session.browser # Automatically create a event loop and browser