title: Python Trigger a function at a specific time
body: <p>I'm trying to code a bot(?) that will open my zoom classes in a specific time. Well the problem is when i start the code Firefox is opening but zoom page is not, so please help, btw here is my code;</p>
  <pre><code>from selenium import webdriver
  import schedule
  import time
  
  path = &quot;/home/mekroknight/Downloads/geckodriver&quot;
  browser = webdriver.Firefox(executable_path=path)
  
  def tuesday_classes():
      tar1 = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      tar2 = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      rehbr = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      fiz1 = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      fiz2 = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      sprjh1 = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      sprjh2 = browser.get(&quot;zoom link&quot;)
  
  def thursday_classes():
      ... 
  
  def saturday_classes():
      ...
  
  schedule.every().tuesday.at(&quot;07:50&quot;).do(tuesday_classes, &quot;Class is starting...&quot;)
  schedule.every().thursday.at(&quot;07:50&quot;).do(thursday_classes, &quot;Class is starting...&quot;)
  schedule.every().saturday.at(&quot;08:40&quot;).do(saturday_classes, &quot;Class is starting...&quot;)
  
  </code></pre>
  <p>what am i doing wrong?(By the way the reason i wrote <code>&quot;zoom link&quot;</code> while coding is that i didn't want strangers to join my lessons.</p>
  <pre><code>    tar1 = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      tar2 = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      rehbr = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      fiz1 = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      fiz2 = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      sprjh1 = browser.get(&quot;zoom link&quot;)
      time.sleep(2400)
      sprjh2 = browser.get(&quot;zoom link&quot;)
  
  </code></pre>
  <p>And this <code>tar</code>,<code>rehbr</code>,<code>fiz</code>,<code>sprjh</code> guys are zoom classes)</p>