jobs.ch changed, so changed scrap implementation

This commit is contained in:
2024-08-12 12:56:05 +02:00
parent 45899d44e3
commit 5b78e29242
4 changed files with 29 additions and 15 deletions

View File

@@ -76,7 +76,8 @@ def login_loop(config_file,gui,worker):
ret_login = 0
session = 0
while (ret != 0):
worker.dialog_rejected = False
if gui:
worker.dialog_rejected = False
ret = entry2 = config.readConfig(config_file,gui,worker)
print(entry2)
if(ret != 0 and ret_login != 1):
@@ -87,7 +88,10 @@ def login_loop(config_file,gui,worker):
log("worker.dialog_rejected = ",worker.dialog_rejected)
session = login(entry2)
ret_login = entry2.input_pw(gui,entry2.user,worker)
if worker.dialog_rejected == False:
if gui:
if worker.dialog_rejected == False:
choose_scraper(entry2,session)
if not gui:
choose_scraper(entry2,session)
def runner(entry,session,scrap_func,next_url_func):