diff --git a/notebooks/scraping/scraping-2-0-selenium.ipynb b/notebooks/scraping/scraping-2-0-selenium.ipynb index aa90072..f0611ee 100644 --- a/notebooks/scraping/scraping-2-0-selenium.ipynb +++ b/notebooks/scraping/scraping-2-0-selenium.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Scraping. Capítulo 3.1\n", + "# Scraping. Capítulo 2.0\n", "\n", "Este é un exemplo moi simple para comezar a empregar selenium. Só contén o básico.\n", "\n", @@ -27,7 +27,8 @@ "metadata": {}, "outputs": [], "source": [ - "!conda install -y selenium pip" + "!conda install pip\n", + "!conda install -c conda-forge selenium" ] }, { @@ -56,7 +57,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install geckodriver-autoinstaller" + "!pip install webdriver_manager" ] }, { @@ -68,23 +69,23 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "'/home/jose/miniconda3/envs/bigdata/lib/python3.10/site-packages/geckodriver_autoinstaller/v0.33.0/geckodriver'" + "'/home/jose/.wdm/drivers/geckodriver/linux64/v0.33.0/geckodriver'" ] }, - "execution_count": 6, + "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "import geckodriver_autoinstaller\n", - "geckodriver_autoinstaller.install()" + "from webdriver_manager.firefox import GeckoDriverManager\n", + "GeckoDriverManager().install()" ] }, { @@ -96,7 +97,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -132,7 +133,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ diff --git a/notebooks/scraping/scraping-2-1-selenium-selectores.ipynb b/notebooks/scraping/scraping-2-1-selenium-selectores.ipynb index 00c10f2..23c0b14 100644 --- a/notebooks/scraping/scraping-2-1-selenium-selectores.ipynb +++ b/notebooks/scraping/scraping-2-1-selenium-selectores.ipynb @@ -18,8 +18,8 @@ "outputs": [], "source": [ "#Instalar gecko\n", - "import geckodriver_autoinstaller\n", - "geckodriver_autoinstaller.install()\n", + "from webdriver_manager.firefox import GeckoDriverManager\n", + "GeckoDriverManager().install()\n", "\n", "#Abrir un navegador\n", "from selenium import webdriver\n", diff --git a/notebooks/scraping/scraping-2-2-selenium-espera.ipynb b/notebooks/scraping/scraping-2-2-selenium-espera.ipynb index 7972750..3bb466d 100644 --- a/notebooks/scraping/scraping-2-2-selenium-espera.ipynb +++ b/notebooks/scraping/scraping-2-2-selenium-espera.ipynb @@ -18,8 +18,8 @@ "outputs": [], "source": [ "#Instalar gecko\n", - "import geckodriver_autoinstaller\n", - "geckodriver_autoinstaller.install()\n", + "from webdriver_manager.firefox import GeckoDriverManager\n", + "GeckoDriverManager().install()\n", "\n", "#Abrir un navegador\n", "from selenium import webdriver\n",