add remote,country,location
فشلت بعض الفحوصات
Docker Image CI / build (push) Has been cancelled

هذا الالتزام موجود في:
2025-10-02 17:23:44 +03:00
الأصل 02dc99de38
التزام 425411c200
2 ملفات معدلة مع 25 إضافات و15 حذوفات

21
jobs.py
عرض الملف

@@ -1,28 +1,37 @@
from jobspy import scrape_jobs
import logging
def getJobs(jobTitle, results_wanted, hours_old):
def getJobs(
jobTitle,
results_wanted,
hours_old,
country,
location,
is_remote,
):
jobs = scrape_jobs(
site_name=[
"indeed",
"linkedin",
# "zip_recruiter",
"google",
# "google",
# "glassdoor",
# "bayt",
# "naukri",
# "bdjobs",
],
search_term=jobTitle,
location="Cairo",
location=location,
results_wanted=results_wanted,
google_search_term=f"{jobTitle} jobs near Cairo since {hours_old} hours",
# google_search_term=f"{jobTitle} jobs near Cairo since {hours_old} hours",
hours_old=hours_old,
country_indeed="Egypt",
country_indeed=country,
is_remote=is_remote,
linkedin_fetch_description=True, # gets more info such as description, direct job url (slower)
# proxies=["208.195.175.46:65095", "208.195.175.45:65095", "localhost"],
)
logging.warning(f"Found {len(jobs)} {jobTitle} jobs")
logging.warning(f"Found {len(jobs)} {jobTitle} jobs in {country},{location}")
# print(jobs)
return jobs
# jobs.to_csv(