logic error when pubdate not found
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user