mirror of
https://github.com/Bunsly/JobSpy.git
synced 2026-03-11 16:04:30 -07:00
Bdjobs Fixed (#280)
This commit is contained in:
32
jobspy/bdjobs/constant.py
Normal file
32
jobspy/bdjobs/constant.py
Normal file
@@ -0,0 +1,32 @@
|
||||
#constant.py
|
||||
# Headers for BDJobs requests
|
||||
headers = {
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
|
||||
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
|
||||
"Accept-Language": "en-US,en;q=0.5",
|
||||
"Connection": "keep-alive",
|
||||
"Referer": "https://jobs.bdjobs.com/",
|
||||
"Cache-Control": "max-age=0",
|
||||
}
|
||||
|
||||
# Search parameters that work best for BDJobs
|
||||
search_params = {
|
||||
"hidJobSearch": "jobsearch",
|
||||
}
|
||||
|
||||
# Selectors for job listings
|
||||
job_selectors = [
|
||||
"div.job-item", # Catches both normal and premium job cards, as well as other types
|
||||
"div.sout-jobs-wrapper", # Catches job listings in the main search results page
|
||||
"div.norm-jobs-wrapper", # Catches normal job listings
|
||||
"div.featured-wrap", # Catches featured job listings
|
||||
]
|
||||
|
||||
# Date formats used by BDJobs
|
||||
date_formats = [
|
||||
"%d %b %Y",
|
||||
"%d-%b-%Y",
|
||||
"%d %B %Y",
|
||||
"%B %d, %Y",
|
||||
"%d/%m/%Y",
|
||||
]
|
||||
Reference in New Issue
Block a user