Skip to content

Commit

Permalink
Merge pull request #563 from lalalaurentiu/main
Browse files Browse the repository at this point in the history
Fixed issues
  • Loading branch information
lalalaurentiu committed Aug 28, 2024
2 parents 97317cd + 802b806 commit 619658a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 4 additions & 1 deletion sites/adp.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
data = re.search(pattern, scraper.text).group(1)
jobs = json.loads("{" + data + "}").get("searchResults")

# show_jobs(jobs)

for job in jobs:
job_title = job.get("job").get("title")
job_link = job.get("job").get("url")
job_link = "https://jobs.adp.com/en/jobs/" + job.get("job").get("ref")
locations = job.get("job").get("google_locations")

cities = [
Expand Down Expand Up @@ -55,3 +57,4 @@
publish_logo(company.get("company"), logoUrl)

show_jobs(finalJobs)

10 changes: 2 additions & 8 deletions sites/wtb.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
scraper.get_from_url(url)
page = 1

jobs = scraper.find("div", {"class": "isotope-wrapper half-gutter"}).find_all(
jobs = scraper.find_all(
"h3", {"class": "t-entry-title h5"}
)

Expand All @@ -32,13 +32,7 @@

page += 1
scraper.get_from_url(url + f"category/careers/category/careers/?%&upage={page}")
try:
jobs = scraper.find("div", {"class": "isotope-wrapper half-gutter"}).find_all(
"h3", {"class": "t-entry-title h5"}
)
except:
jobs = None

jobs = scraper.find_all( "h3", {"class": "t-entry-title h5"})

publish_or_update(finalJobs)
publish_logo(company, "https://www.wtb.ro/wp-content/uploads/2018/04/logoblack.svg")
Expand Down

0 comments on commit 619658a

Please sign in to comment.