Skip to content

Commit

Permalink
Merge pull request #244 from lalalaurentiu/main
Browse files Browse the repository at this point in the history
Fixed Biofarm Scraper
  • Loading branch information
lalalaurentiu committed Nov 11, 2023
2 parents ff3cf41 + e013ab2 commit eea97c2
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions sites/biofarm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from scraper.Scraper import Scraper
from utils import (publish, publish_logo, create_job, show_jobs)
from utils import (publish, publish_logo, create_job, show_jobs, translate_city)
from getCounty import get_county

company = 'Biofarm'
url = 'https://mingle.ro/api/boards/mingle/jobs?q=companyUid~eq~%22biofarm%22&page=0&pageSize=1000&sort=modifiedDate~DESC'
Expand All @@ -10,21 +11,23 @@
jobs = []

for job in scraper.markup['data']['results']:
try:
city = job['locations'][0]['name']
except:
city = 'Romania'
if job['locations']:
job_title=job['jobTitle']
job_link='https://biofarm.mingle.ro/ro/embed/apply/' + job['publicUid']
city = translate_city(job['locations'][0]['name'])
county = get_county(city)

jobs.append(create_job(
job_title=job['jobTitle'],
job_link='https://biofarm.mingle.ro/ro/embed/apply/' + job['publicUid'],
city=city,
country='Romania',
company=company,
))
jobs.append(create_job(
job_title=job_title,
job_link=job_link,
company=company,
country="Romania",
city=city,
county=county,
))

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

publish_logo(company, 'https://www.selgros.ro/themes/contrib/garnet/dist/assets/branding/logo-selgros.svg')
publish_logo(company, 'https://www.biofarm.ro/wp-content/uploads/2019/10/logo.png')
show_jobs(jobs)

0 comments on commit eea97c2

Please sign in to comment.