Skip to content

Commit

Permalink
Removed Fortech scraper and Added Stratpharma scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalaurentiu committed Feb 15, 2024
1 parent ec385ce commit 50f2345
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 44 deletions.
44 changes: 0 additions & 44 deletions sites/fortech.py

This file was deleted.

31 changes: 31 additions & 0 deletions sites/stratpharma.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from scraper.Scraper import Scraper
from utils import publish, publish_logo, show_jobs

company = "stratpharma"
url = "https://jobs.workable.com/api/v1/companies/kRMJQQdcEfWFqoT2heypL5"

scraper = Scraper()
scraper.get_from_url(url, "JSON")

jobs = [
{
"job_title": job["title"],
"job_link": job["url"],
"remote": job["workplace"].replace("_", "-"),
"country": "Romania",
"company": company,
"city": job["location"]["city"],
"county": job["location"]["subregion"].replace("County", "").strip(),
}
for job in scraper.markup.get("jobs")
if job["location"]["countryName"] == "Romania"
]

publish(4, company, jobs, "APIKEY")

publish_logo(
company,
"https://workablehr.s3.amazonaws.com/uploads/account/logo/24841/logo",
)

show_jobs(jobs)

0 comments on commit 50f2345

Please sign in to comment.