Skip to content

Commit

Permalink
Merge pull request #255 from TheMrM/main
Browse files Browse the repository at this point in the history
Update dedeman.py I forked the repo again
  • Loading branch information
lalalaurentiu committed Nov 12, 2023
2 parents d83dada + 1a388e9 commit ff09ca5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions sites/dedeman.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import requests
import json
from utils import *
from getCounty import *

url = 'https://recrutare.dedeman.ro/sinapsi-jobannounceswithfilter/'
url = 'https://recrutare.dedeman.ro/api/sinapsi/jobs'
company = 'DEDEMAN'

data = {
Expand All @@ -23,13 +24,19 @@
final_jobs = []

for job in job_announces:
city = job['City']
county = get_county(city)
input_job_id = job['Id']
format_job_title = '+'.join(job["Function"].lower().split())
output_job_link = f'https://recrutare.dedeman.ro/detalii-post?job={format_job_title}&id={input_job_id}'
final_jobs.append(
create_job(
job_title = job['Function'],
company = company,
city = job['City'],
city = city,
county = county,
country = 'Romania',
job_link = 'https://recrutare.dedeman.ro/detalii-post.php?id=' + job['Id']
job_link = output_job_link,
)
)

Expand Down

0 comments on commit ff09ca5

Please sign in to comment.