Skip to content

Commit

Permalink
gecko driver win&lin
Browse files Browse the repository at this point in the history
  • Loading branch information
jfsanchez committed Dec 2, 2023
1 parent 57d7257 commit 7d0dd68
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
21 changes: 11 additions & 10 deletions notebooks/scraping/scraping-2-0-selenium.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -27,7 +27,8 @@
"metadata": {},
"outputs": [],
"source": [
"!conda install -y selenium pip"
"!conda install pip\n",
"!conda install -c conda-forge selenium"
]
},
{
Expand Down Expand Up @@ -56,7 +57,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install geckodriver-autoinstaller"
"!pip install webdriver_manager"
]
},
{
Expand All @@ -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()"
]
},
{
Expand All @@ -96,7 +97,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -132,7 +133,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand Down
4 changes: 2 additions & 2 deletions notebooks/scraping/scraping-2-1-selenium-selectores.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/scraping/scraping-2-2-selenium-espera.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7d0dd68

Please sign in to comment.