CompensationInterval enum defines standardized time intervals for expressing compensation amounts in job postings. This ensures consistent interpretation of salary data across different job boards and regions.
Enum Values
YEARLY
Value: "yearly"
Annual salary or compensation.
- Most common for salaried positions
- Typically used for professional and corporate roles
- Often expressed as gross income before taxes
MONTHLY
Value: "monthly"
Monthly salary or compensation.
- Common in international markets
- Standard in many European and Asian countries
- Often used for salaried positions outside the US
WEEKLY
Value: "weekly"
Weekly pay or compensation.
- Common for hourly workers paid on weekly schedule
- Used in staffing and temporary positions
- Typical in construction, retail, and service industries
DAILY
Value: "daily"
Daily rate or per diem compensation.
- Common for contractors and freelancers
- Used in consulting and project-based work
- Standard for per diem healthcare and education roles
HOURLY
Value: "hourly"
Hourly wage or rate.
- Standard for hourly employees
- Most common for part-time and shift work
- Used extensively in retail, hospitality, and entry-level positions
Usage in Results
Reading Compensation Data
Filtering by Salary Range
Converting Between Intervals
Grouping by Interval
Automatic Normalization
JobSpy automatically normalizes various pay period formats to standard intervals using thegetCompensationInterval() helper function.
Recognized Formats
The following strings are automatically normalized: YEARLY:"YEAR","year""YEARLY","yearly""ANNUAL","annual""ANNUALLY","annually"
"MONTH","month""MONTHLY","monthly"
"WEEK","week""WEEKLY","weekly"
"DAY","day""DAILY","daily"
"HOUR","hour""HOURLY","hourly"
Using the Helper Function
Type Definition
Compensation Interface
TheCompensationInterval enum is used within the Compensation interface:
Related
- Compensation - Full compensation data structure
- JobPost - Interface that includes compensation field
- ScrapeJobsParams - Parameters including enforce_annual_salary option
