From 2794dc8ed3cb312ade4102fedfa2b5fa10f28520 Mon Sep 17 00:00:00 2001 From: ccppi Date: Thu, 4 Jul 2024 12:59:07 +0200 Subject: [PATCH] fix link on jobs.ch --- lib/conf.orig | 55 +++++++++++++++++++++++++++++++++++++++++++++++ lib/scrap_jobs.py | 2 +- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 lib/conf.orig diff --git a/lib/conf.orig b/lib/conf.orig new file mode 100644 index 0000000..1bcddef --- /dev/null +++ b/lib/conf.orig @@ -0,0 +1,55 @@ + +[jobagent.ch] +USER = test@gmx.ch +PW = ASK +LOGINURL = https://www.jobagent.ch/user/login +SCRAPURL = https://www.jobagent.ch/search?terms=Automatiker&lra=0&as=0 +TAG = Automatiker + + +[software-job.ch-application-engineer] +USER = NONE +PW = NONE +LOGINURL = NONE +SCRAPURL = https://software-job.ch/application-engineer +TAG = Informatiker + +[software-job.ch] +USER = NONE +PW = NONE +LOGINURL = NONE +SCRAPURL = https://software-job.ch/python-entwicklung +TAG = Informatiker,Python + +[jobs.ch_linux] +USER = NONE +PW = NONE +LOGINURL = NONE +SCRAPURL = https://www.jobs.ch/en/vacancies/?term=linux +TAG = Informatiker,Linux + + +[jobagent.ch-2] +USER = test@gmx.ch +PW = ASK +LOGINURL = https://www.jobagent.ch/user/login +SCRAPURL = https://www.jobagent.ch/search?terms=Informatiker&lra=0&as=0 +TAG = Informatiker + +[jobs.ch] +USER = NONE +PW = NONE +LOGINURL = NONE +SCRAPURL= https://www.jobs.ch/en/vacancies/?term=automatiker +TAG = Automatiker + +[jobs.ch_informatiker] +USER = NONE +PW = NONE +LOGINURL = NONE +SCRAPURL= https://www.jobs.ch/en/vacancies/?term=informatiker +TAG = Informatiker + + + +#https://www.jobagent.ch/search?terms=Automatiker&workload=60-100&lra=0&as=0 diff --git a/lib/scrap_jobs.py b/lib/scrap_jobs.py index 0b93886..d99474a 100644 --- a/lib/scrap_jobs.py +++ b/lib/scrap_jobs.py @@ -59,7 +59,7 @@ def scrap_jobs(url,entry,session): date = item("span","Span-sc-1ybanni-0 Text__span-sc-1lu7urs-12 Text-sc-1lu7urs-13 krGudM hUhFmL",0) ar_date = finder(results,date,CLEANDATE=1) - link = item("a","Link__ExtendedRR6Link-sc-czsz28-1 khAvCu Link-sc-czsz28-2 VacancyLink___StyledLink-sc-ufp08j-0 dXKwhi dDgwgk",0) + link = item("a","VacancyLink___StyledLink-sc-ufp08j-0",0) ar_link = finder(results,link,LINK=1,BASEURL="https://jobs.ch") tag = entry.tag#get from config