logic error when pubdate not found

This commit is contained in:
2024-06-17 10:22:28 +02:00
parent 61ce809d9f
commit e7f634d19a
4 changed files with 22 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
from helpers import *
DEBUG = False
DEBUG = True
def log(*s):
if DEBUG:
@@ -135,6 +135,10 @@ def scrap_jobagent(url,entry,session):
#print(soup.prettify())
results = soup.find_all("li",class_="item")
if not results:
print("no li items found")
print("page:",page)
input("Press key to continue")
title = item("span","jobtitle",0)
ar_title = finder(results,title)