# Display the contents of any links detected if requested. if (len(JoburlList) >= 1): # Create list of possible actions. Choices = ['y', 'n', 'exit'] for Joburl in JoburlList: # Set length of the url. if (NoOfArgs >= 4): Joburl = Joburl[0:LenArg] # Chose whether or not to see contents of detected link Prompt = 'Do you wish to show contents of link %s length %i %s : ' % ( Joburl, len(Joburl), str(Choices)) Choice = Interface.GetChoice(Prompt, Choices, count=2) # Display vacancy. if (Choice == 'y'): Interface.ViewVacancy(Browser, Joburl) if (Choice == 'exit'): break # Remove vacancy from view # Interface.KillProcess(Browser,Killdelay,empty) # Log end of script File.Logerror(ErrorfileObject, module, 'Completed', info) # Close error log file Errormessage = 'Could not close ' + Errorfilename if (File.Close(ErrorfileObject, failure) == failure): File.Logerror(ErrorfileObject, module, Errormessage, warning)