From 8ee05796c4f65415f11719e4b1ff48b76380df7f Mon Sep 17 00:00:00 2001 From: msglm Date: Sat, 9 May 2026 00:38:47 -0500 Subject: better documentation and code doesnt crash --- contrib/example.toml | 16 ++++++++-------- getmeajob/getmeajob.py | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/contrib/example.toml b/contrib/example.toml index dde10a1..a67801c 100644 --- a/contrib/example.toml +++ b/contrib/example.toml @@ -1,14 +1,14 @@ [aviation] -sites=["indeed", "zip_recruiter", "google", "glassdoor", "bayt", "naukri"] +sites=["indeed", "zip_recruiter", "google", "glassdoor", "bayt", "naukri"] #Sites you wish to use #sites=["indeed", "linkedin", "zip_recruiter", "google", "glassdoor", "bayt", "naukri", "bdjobs"] -search="Entry level Aviation Technician" -location="Phoenix, Arizona" -country="USA" -results_wanted=200 -hours_old=336 -proxy=false +search="Entry level Aviation Technician" #The search querty to put into the sites +location="Phoenix, Arizona" #The location of the jobs you're looking for +country="USA" #The country you're looking for +results_wanted=200 #The amount of results you want +hours_old=336 #The oldness you're willing to tolerate +proxy=false #If you wish to use a proxy or not, sometimes unstable due to using free proxies automated_questions = [ "Does this job require a college diploma?", "Does this job offer PTO?", "Is there a listed salary?" -] +] #LLM questions to probe each job listing for automatically diff --git a/getmeajob/getmeajob.py b/getmeajob/getmeajob.py index b78d4e3..cec1df1 100644 --- a/getmeajob/getmeajob.py +++ b/getmeajob/getmeajob.py @@ -8,7 +8,7 @@ from jobspy import scrape_jobs import argparse from fp.fp import FreeProxy from jinja2 import Template -from llama_cpp import Llama +#from llama_cpp import Llama template = Template(""" {# jobs is a list of dicts with the fields you specified #} @@ -138,6 +138,6 @@ def main(): # print(qanda) - open(args.output_file, "w", encoding="utf-8").write(template.render(jobs=jobsdict))) + open(args.output_file, "w", encoding="utf-8").write(template.render(jobs=jobsdict)) print("Wrote file!") -- cgit v1.2.3