DescriptionFormat enum specifies the desired output format for job descriptions returned by JobSpy. Different formats are useful for different use cases, from direct rendering to text analysis.
Enum Values
MARKDOWN
Value: "markdown"
Returns job descriptions formatted in Markdown.
- Clean, readable format with preserved structure
- Easy to render in documentation and web applications
- Preserves headings, lists, and basic formatting
- Ideal for storing in content management systems
- Can be easily converted to other formats
HTML
Value: "html"
Returns job descriptions as HTML markup.
- Rich formatting with full styling preserved
- Includes tags like
<p>,<ul>,<strong>,<a>, etc. - Ready for direct rendering in web browsers
- May include inline styles and classes
- Most detailed formatting option
PLAIN
Value: "plain"
Returns job descriptions as plain text with no formatting.
- All HTML tags and markdown syntax removed
- Simple, clean text content
- Whitespace normalized
- Ideal for text analysis and search indexing
- Smallest data size
Usage Examples
Setting Format in scrapeJobs()
String Alternative
Format Comparison
Format-Specific Processing
HTML Format - Direct Rendering
Markdown Format - Convert to HTML
Plain Format - Text Analysis
Format for Different Use Cases
Fetching Individual Jobs
Format Characteristics
Size Comparison
Typical relative sizes for the same description:Formatting Preservation
| Feature | HTML | Markdown | Plain |
|---|---|---|---|
| Headings | ✅ <h1>, <h2> | ✅ #, ## | ❌ Lost |
| Bold/Italic | ✅ <strong>, <em> | ✅ **bold**, *italic* | ❌ Lost |
| Links | ✅ <a href> | ✅ [text](url) | ⚠️ URL text only |
| Lists | ✅ <ul>, <ol> | ✅ -, 1. | ⚠️ Basic structure |
| Line breaks | ✅ <br>, <p> | ✅ Double newline | ✅ Preserved |
| Tables | ✅ <table> | ✅ Pipe syntax | ❌ Lost |
| Styling | ✅ Colors, fonts | ❌ Not supported | ❌ Not supported |
Processing Speed
Relative processing times:Default Behavior
Ifdescription_format is not specified:
Type Definition
Related
- JobPost - Interface that includes description field
- ScrapeJobsParams - Parameters including description_format option
- scrapeJobs() - Main function that accepts description_format
- fetchLinkedInJob() - Accepts format parameter for single jobs
