FEAT: Add Glassdoor logo data if available (#167)

pull/168/head
Lluís Salord Quetglas 2024-07-16 03:25:18 +02:00 committed by GitHub
parent d000a81eb3
commit 0988230a24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -189,6 +189,7 @@ class GlassdoorScraper(Scraper):
except: except:
description = None description = None
company_url = f"{self.base_url}Overview/W-EI_IE{company_id}.htm" company_url = f"{self.base_url}Overview/W-EI_IE{company_id}.htm"
company_logo = job_data["jobview"].get("overview", {}).get("squareLogoUrl", None)
return JobPost( return JobPost(
id=str(job_id), id=str(job_id),
title=title, title=title,
@ -201,6 +202,7 @@ class GlassdoorScraper(Scraper):
is_remote=is_remote, is_remote=is_remote,
description=description, description=description,
emails=extract_emails_from_text(description) if description else None, emails=extract_emails_from_text(description) if description else None,
logo_photo_url=company_logo,
) )
def _fetch_job_description(self, job_id): def _fetch_job_description(self, job_id):