driver.get("https://www.deezer.com/login")
      connect_proxy=0
#check proxy state
      connect_proxy = heart.check_proxy(driver)
      if(connect_proxy == 0):
         state="Error Proxy!"

      continue_=0      
      connect=1
      ii=0
      #check proxy connection
      if(connect_proxy==1):
            #login
            wait = WebDriverWait(driver, 30)
            heart.login(driver,user_account,password_account)
            connect=-1
            try:
                 #if it's an invalid deezer account then connect = 0
                 driver.find_element_by_xpath("//div[@id='login_error']")
                 state="Cannot Connect"
                 connect=-1
                 print(user_account +' > ' + state)
            except NoSuchElementException:
                 connect=1
            continue_=0           #if connected
            if(connect==1):
                print("connect : account " + user_account)
                #come back to default ua
                url = "https://www.deezer.com/"
                driver.get(url)
         driver.get("https://accounts.spotify.com/en/login")
         WebDriverWait(driver, 30).until(
             EC.presence_of_element_located(
                 (By.ID, 'login-username')))
         print(user_account + " > Proxy is ready!")
         connect_proxy = 1
     except TimeoutException:
         print(user_account +
               " > Loading took too much time! (proxy)")
         connect_proxy = 0
         state = "Error Proxy!"
 connect = 1
 #check proxy connection
 if (connect_proxy == 1):
     #login
     login(driver, user_account, password_account)
     sleep(5)
     try:
         #if it's an invalid spotify account then connect = 0
         driver.find_element_by_xpath(
             "//p[@class='alert alert-warning']")
         connect = 0
         state = "Cannot Connect"
         try:
             driver.find_element_by_xpath(
                 "//p[@class='alert alert-warning']//span[contains(text(), 'Incorrect username or password.')]"
             )
             connect = -1
             state = "Inc usr or passwd."
         except:
             connect = 0