include location with 3 parts

pull/69/head
Faraz 2023-11-10 15:43:47 +11:00
parent 81f70ff8a5
commit f6e0a7f2f6
1 changed files with 7 additions and 0 deletions

View File

@ -278,5 +278,12 @@ class LinkedInScraper(Scraper):
state=state, state=state,
country=Country.from_string(self.country), 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 return location