From df2e079a6dacef75653d5e25308badbf7226ab0f Mon Sep 17 00:00:00 2001 From: Romain Avouac <43444134+avouacr@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:54:02 +0100 Subject: [PATCH] fix(selenium): chromedriver path --- content/manipulation/04a_webscraping_TP.qmd | 23 +-------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/content/manipulation/04a_webscraping_TP.qmd b/content/manipulation/04a_webscraping_TP.qmd index 7bce6c6f64..683d75d99d 100644 --- a/content/manipulation/04a_webscraping_TP.qmd +++ b/content/manipulation/04a_webscraping_TP.qmd @@ -1393,7 +1393,7 @@ run the following commands: !pip install chromedriver-autoinstaller selenium import chromedriver_autoinstaller -chromedriver_autoinstaller.install() +path_to_web_driver = chromedriver_autoinstaller.install() ```
@@ -1417,27 +1417,6 @@ For example, from a ::: -::: {.content-visible when-profile="fr"} -Après avoir installé `Chromium`, -il est nécessaire d'indiquer à `Python` où -le trouver. Si vous êtes sur `Linux` et que vous -avez suivi les consignes précédentes, vous pouvez faire : -::: - -::: {.content-visible when-profile="en"} -After installing `Chromium`, -you need to tell `Python` where to find it. If you are on `Linux` and have followed the previous instructions, you can do the following: -::: - -```{python} -#| output: false -#| echo: true -import selenium -from webdriver_manager.chrome import ChromeDriverManager - -path_to_web_driver = ChromeDriverManager().install() -``` - ::: {.content-visible when-profile="fr"} En premier lieu, il convient d'initialiser le comportement de `Selenium` en répliquant les paramètres