Skip to content

Commit

Permalink
Merge pull request #247 from lalalaurentiu/main
Browse files Browse the repository at this point in the history
Update Veeam scraper
  • Loading branch information
lalalaurentiu authored Nov 11, 2023
2 parents ebcab23 + cf9b216 commit ddd5496
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions sites/veeam.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,36 @@
jobs_elements = scraper.markup

for job in jobs_elements:
job_title=job["title"]
job_link="https://jobs.smartrecruiters.com/Veeam2/" + job["remoteId"]
country = ""
citys = []
countys = []
for location in job["location"]:
country = location["country"]
city = location["city"]
country = location["country"]

jobObj = create_job(
job_title=job["title"],
job_link="https://jobs.smartrecruiters.com/Veeam2/" + job["remoteId"],
city=city,
country=country,
company=company
)
citys.append(city)

if country == "Romania":
jobObj["job_link"] = job["applyUrl"]
county = get_county(translate_city(city))
jobObj["county"] = county

jobs.append(jobObj)
citys = []
job_link = job["applyUrl"]
citys.append(translate_city(city))
countys.append(get_county(translate_city(city)))

jobObj = create_job(
job_title=job_title,
job_link=job_link,
company=company,
country=country,
city=citys,
county=countys,
)

jobs.append(jobObj)

for version in [1,4]:
publish(version, company, jobs, 'APIKEY')

publish_logo(company, 'https://img.veeam.com/careers/logo/veeam/veeam_logo_bg.svg')
show_jobs(jobs)
show_jobs(jobs)

0 comments on commit ddd5496

Please sign in to comment.