add finder option indeedExtractDays

This commit is contained in:
ccppi 2024-08-21 11:42:47 +02:00
parent e305a7ba75
commit f95d757b08

View File

@ -66,6 +66,7 @@ def finder(results,item,**modes):
SWAPDATE = modes.get('SWAPDATE',0)
CLEANDATE = modes.get('CLEANDATE',0)
BASEURL = modes.get('BASEURL','')
INDEEDDATE = modes.get('INDEEDDATE',0)
content = []
i = item.index
log("name",item.name)
@ -117,6 +118,9 @@ def finder(results,item,**modes):
elif CLEANDATE==1:
log("[finder] pre cleandate:",result2.text.strip)
content.append(jobs_ch_clean_date(result2.text.strip()))
elif INDEEDDATE==1:
log("[finder] pre indeeddate:",result2.text.strip)
content.append(indeedExtractDays(result2.text.strip()))
else:
log(result2)
content.append(result2.text.strip())