Created
April 2, 2020 22:05
-
-
Save josemariagarcia95/d6355352465fd2c9fbb91f0bc8c0577b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.support.wait import WebDriverWait | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support import expected_conditions as EC | |
chrome_driver = webdriver.Chrome() | |
# Open the amazon photos login page | |
chrome_driver.get( | |
"https://www.amazon.es/photos?sf=1/ref=s9_acss_bw_h1_EEEESSS_bn_w?ref_=BN_ES_C_U_E_M_CD_CG_417_ADAPSI&pf_rd_m=A1AT7YVPFBWXBL&pf_rd_s=merchandised-search-1&pf_rd_r=CKMHBDSC7YCPSMXR24KE&pf_rd_t=101&pf_rd_p=d284dade-6826-459b-9042-bf7f3d7341d1&pf_rd_i=12364776031" | |
) | |
# Set a longer implicit wait in order to make selenium wait at least five seconds for loading things | |
chrome_driver.implicitly_wait(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment