mirror of https://github.com/Bunsly/JobSpy
Fix GlassDoor Country Issue
Bossman, I get error if I input a "two letters country name" even though it is listed in the countries supported. I haven't tested it yet but is it possible the proposed changes can fix it? Thinkin that the problem is it doesn't accept "two letters"pull/122/head
parent
f8a4eccc6b
commit
ef7e0509eb
|
@ -136,7 +136,7 @@ class Country(Enum):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def glassdoor_domain_value(self):
|
def glassdoor_domain_value(self):
|
||||||
if len(self.value) == 3:
|
if len(self.value) >= 2:
|
||||||
subdomain, _, domain = self.value[2].partition(":")
|
subdomain, _, domain = self.value[2].partition(":")
|
||||||
if subdomain and domain:
|
if subdomain and domain:
|
||||||
return f"{subdomain}.glassdoor.{domain}"
|
return f"{subdomain}.glassdoor.{domain}"
|
||||||
|
|
Loading…
Reference in New Issue