Skip to content

Commit

Permalink
remove browser argument
Browse files Browse the repository at this point in the history
  • Loading branch information
0xN0BADC0FF33 authored May 8, 2024
1 parent d0ee11c commit 5026650
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pdf_filler/homeoffice.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@

ondays = ['2023/06/19', '2023/06/20', '2023/06/21', '2023/06/22', '2023/06/23', '2023/06/26', '2023/06/27', '2023/06/28', '2023/06/29', '2023/06/30', '2023/07/03', '2023/07/04', '2023/07/05', '2023/07/06', '2023/07/07', '2023/07/10', '2023/07/11', '2023/07/12', '2023/07/13', '2023/07/14', '2023/07/17', '2023/07/18', '2023/07/19', '2023/07/20', '2023/07/21', '2023/08/07', '2023/08/08', '2023/08/09', '2023/08/10', '2023/08/11', '2023/08/14', '2023/08/16', '2023/08/17', '2023/08/18', '2023/08/21', '2023/08/22', '2023/08/23', '2023/08/24', '2023/08/25', '2023/08/28', '2023/08/29', '2023/08/30', '2023/08/31', '2023/09/01', '2023/09/04', '2023/09/05', '2023/09/06', '2023/09/07', '2023/09/08', '2023/09/11', '2023/09/12', '2023/09/13', '2023/09/14', '2023/09/15', '2023/09/18', '2023/09/19', '2023/09/20', '2023/09/21', '2023/09/22', '2023/09/25', '2023/09/26', '2023/09/27', '2023/09/28', '2023/09/29', '2023/10/02', '2023/10/04', '2023/10/05', '2023/10/06', '2023/10/09', '2023/10/10', '2023/10/11', '2023/10/12', '2023/10/13', '2023/10/16', '2023/10/17', '2023/10/18', '2023/10/19', '2023/10/20', '2023/10/23', '2023/10/24', '2023/10/25', '2023/10/26', '2023/10/27', '2023/10/30', '2023/11/02', '2023/11/03', '2023/11/06', '2023/11/07', '2023/11/08', '2023/11/09', '2023/11/10', '2023/11/13', '2023/11/14', '2023/11/15', '2023/11/16', '2023/11/17', '2023/11/20', '2023/11/21', '2023/11/22', '2023/11/23', '2023/11/24', '2023/11/27', '2023/11/28', '2023/11/29', '2023/11/30', '2023/12/01', '2023/12/04', '2023/12/05', '2023/12/06', '2023/12/07', '2023/12/08', '2023/12/11', '2023/12/12', '2023/12/13', '2023/12/14', '2023/12/15', '2023/12/18', '2023/12/19', '2023/12/20', '2023/12/21', '2023/12/22', '2024/01/08', '2024/01/09', '2024/01/10', '2024/01/11', '2024/01/12', '2024/01/15', '2024/01/16', '2024/01/17', '2024/01/18', '2024/01/19', '2024/01/22', '2024/01/23', '2024/01/24', '2024/01/25', '2024/01/26', '2024/01/29', '2024/01/30', '2024/01/31', '2024/02/01', '2024/02/02', '2024/02/05', '2024/02/06', '2024/02/07', '2024/02/08', '2024/02/09', '2024/02/12', '2024/02/13', '2024/02/14', '2024/02/15', '2024/02/16', '2024/02/19', '2024/02/20', '2024/02/21', '2024/02/22', '2024/02/23', '2024/02/26', '2024/02/27', '2024/02/28', '2024/02/29', '2024/03/01', '2024/03/04', '2024/03/05', '2024/03/06', '2024/03/07', '2024/03/11', '2024/03/12', '2024/03/13', '2024/03/14', '2024/03/15', '2024/03/18', '2024/03/19', '2024/03/20', '2024/03/21', '2024/03/22', '2024/04/08', '2024/04/09', '2024/04/10', '2024/04/11', '2024/04/12', '2024/04/15', '2024/04/16', '2024/04/17', '2024/04/18', '2024/04/19', '2024/04/22', '2024/04/23', '2024/04/24', '2024/04/25', '2024/04/26', '2024/04/29', '2024/04/30', '2024/05/02', '2024/05/03', '2024/05/06', '2024/05/07', '2024/05/08', '2024/05/10', '2024/05/13', '2024/05/14', '2024/05/15', '2024/05/16', '2024/05/17', '2024/05/21', '2024/05/22', '2024/05/23', '2024/05/24', '2024/05/27', '2024/05/28', '2024/05/29', '2024/05/31', '2024/06/03', '2024/06/04', '2024/06/05', '2024/06/06', '2024/06/07', '2024/06/10', '2024/06/11', '2024/06/12', '2024/06/13', '2024/06/14', '2024/06/17', '2024/06/18', '2024/06/19', '2024/06/20', '2024/06/21', '2024/06/24', '2024/06/25', '2024/06/26', '2024/06/27', '2024/06/28', '2024/07/01', '2024/07/02', '2024/07/03', '2024/07/04', '2024/07/05', '2024/07/08', '2024/07/09', '2024/07/10', '2024/07/11', '2024/07/12', '2024/07/15', '2024/07/16', '2024/07/17', '2024/07/18', '2024/07/19', '2024/08/05', '2024/08/06', '2024/08/07', '2024/08/08', '2024/08/09', '2024/08/12', '2024/08/13', '2024/08/14', '2024/08/16', '2024/08/19', '2024/08/20', '2024/08/21', '2024/08/22', '2024/08/23', '2024/08/26', '2024/08/27', '2024/08/28', '2024/08/29', '2024/08/30', '2024/09/02', '2024/09/03', '2024/09/04', '2024/09/05', '2024/09/06', '2024/09/09', '2024/09/10', '2024/09/11', '2024/09/12', '2024/09/13', '2024/09/16', '2024/09/17', '2024/09/18', '2024/09/19', '2024/09/20']

options=Options()
options.add_argument('-headless')
browser = webdriver.Firefox(options=options)

class link:
login = "https://lernplattform.gfn.de/login/index.php"
home = "https://lernplattform.gfn.de/"
zestarted = "https://lernplattform.gfn.de/?starten=1"
zestopped = "https://lernplattform.gfn.de/?stoppen=1"
anwesi = "https://lernplattform.gfn.de/local/anmeldung/anwesenheit.php"

def login_user(browser, User, Pass):
def login_user(User, Pass):
try:
browser.get(link.login)
username = browser.find_element(By.ID, 'username')
Expand Down Expand Up @@ -96,7 +100,7 @@ def getUsername(browser):

return soup.find("span", {"id": "actionmenuaction-1"}).text

def main(browser, benutzer, passwort):
def main(benutzer, passwort):
fullname, home = Homecalculator(browser)
browser.quit()
return fullname, home

0 comments on commit 5026650

Please sign in to comment.