Package: job-hunting
job-huntingA automated job finder that find and subscribe in jobinstalationInstalled via pip:pipinstalljob-huntingor from source:pythonsetup.pyand make sure that you downloadchromedriverthat matches your chrome browser versionand create a ".env" file in your root directory and input the chromdrive path on itCHROMEDRIVER_PATH="Your chromedrive path"Usagewith vagas.comfromjobhunting.Models.vagasComimportVagasComdefsearchVagasCom(targetJob,vagasUser,vagasPassword,headless):vagas=VagasCom(chromedriver_path="C:\Selenium\chromedriver.exe",headless=headless)targetJob="bots"job_site=vagas.appNameprint(f'{job_site}Iniciando...')try:print(f'{job_site}Tentando logar...')ifnotvagas.login(vagasUser,vagasPassword):print(f'{job_site}Login inválido ou campos errados!')vagas.quitSearch()returnprint(f'{job_site}logado com sucesso!')print(f'{job_site}A selecionar vaga...')vagas.insertJob(targetJob)print(f'{job_site}Vaga selecionada!')print(f'{job_site}A ajustar opções...')vagas.searchOptions()print(f'{job_site}Feito!')print(f'{job_site}Listando Vagas...')vagas.selectJobs()print(f'{job_site}Feito!')print(f"{len(vagas.targetLink)}vagas encontradas!")success=0fail=0print(f"{job_site}Se inscrevendo nas vagas...")try:forindex,targetinenumerate(vagas.targetLink):iftarget.startswith("https://")ortarget.startswith("http://"):status=vagas.subscribeJob(target)ifstatus=="Vaga cadastrada!":success+=1else:fail+=1print(f"{job_site}{index+1}vaga, status:{status}")exceptException:print(f"{job_site}erro ao se inscrever!")finally:vagas.quitSearch()print(f'Vagas inscritas{success}')print(f'Vagas ja inscritas anteriomente ou requer preenchimento adicional:{fail}')exceptExceptionaserror:print("Algum problema ocorreu e/ou as informações estão erradas!")# vagas.quitSearch()raiseexceptKeyboardInterrupt:print('Saindo, volte sempre!')vagas.quitSearch()or with infojobsfromjobhunting.Models.InfojobsimportInfojobsdefsearchInfojob(jobTarget,user,password,headless):"""Infojobs automatic subscription job:jobTarget: target job to subsscribe:login: infojobs user to login:password: password to login"""jobs=Infojobs(chromedriver_path="Your chromedriver path",headless=headless)site_job=jobs.appNamejob_type=jobTargettry:print(f'{site_job}Iniciando...')print(f'{site_job}Tentando logar...')ifnotjobs.login(user,password):print(f"{site_job}Login inválido ou campos errados!")jobs.quitSearch()sys.exit()print(f'{site_job}Selecionando vaga...')jobs.searchList(job_type)print(f'{site_job}Feito!, buscando vagas para{site_job}')print(f'{site_job}Ajustando opções...')jobs.searchOptions()print(f"{site_job}Feito!")print(f'{site_job}Selecionando vagas disponiveis...')jobs.getJob()print(f'{site_job}{len(jobs.jobsLink)}Vagas selecionadas!')success=0fail=0print(f"{site_job}Se inscrevendo nas vagas...")forindex,targetinenumerate(jobs.jobsLink):iftarget.startswith("https://")ortarget.startswith("http://"):status=jobs.subscribeJob(target)ifstatus=="Vaga cadastrada!":success+=1else:fail+=1print(f"{site_job}{index+1}vaga, status:{status}")jobs.quitSearch()print(f'Vagas inscritas{success}')print(f'Vagas ja inscritas anteriomente ou requer preenchimento adicional:{fail}')exceptExceptionaserror:jobs.quitSearch()print("Algum problema ocorreu e/ou as inforamções estão erradas!")print(f"Erro{error}, contate o adminstrador do sistema")exceptKeyboardInterrupt:print('Saindo, volte sempre!')jobs.quitSearch()