include location with 3 parts (#69)

This commit is contained in:
Faraz Khan
2023-11-11 03:59:42 +05:00
committed by GitHub
parent 81f70ff8a5
commit dfb8c18c51
2 changed files with 8 additions and 1 deletions

View File

@@ -278,5 +278,12 @@ class LinkedInScraper(Scraper):
state=state,
country=Country.from_string(self.country),
)
elif len(parts) == 3:
city, state, country = parts
location = Location(
city=city,
state=state,
country=Country.from_string(country),
)
return location