-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed Fortech scraper and Added Stratpharma scraper
- Loading branch information
1 parent
ec385ce
commit 50f2345
Showing
2 changed files
with
31 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |