title: Python Automatic Download (ufile.io)
body: <p>I am creating a program that automates downloading my business files from ufile.io. I am using selenium to automate downloading. (By the way, I'm a beginner at python, so I don't know how to perform click on the button). I am using python 3.9.1</p>
  <p>Link of (test) file: <a href="https://ufile.io/hogllf5z" rel="nofollow noreferrer">https://ufile.io/hogllf5z</a> (Expires in 30 days)</p>
  <p>Code:</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  import time
  
  ChromeDriver = &quot;/Users/macintosh/Python 3rd party library/chromedriver&quot;
  driver = webdriver.Chrome(ChromeDriver)
  
  driver.get(&quot;https://ufile.io/hogllf5z&quot;)
  
  try:
      element = WebDriverWait(driver, 10).until(
          EC.presence_of_element_located((By.XPATH, &quot;/html/body/div[10]/div[4]/div/section/div/div/div/div/a[2]&quot;))
      )
  except:
      driver.quit()
  </code></pre>