Skip to content

Commit

Permalink
include location with 3 parts (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
frzkhan committed Nov 10, 2023
1 parent 81f70ff commit dfb8c18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-jobspy"
version = "1.1.27"
version = "1.1.28"
description = "Job scraper for LinkedIn, Indeed, Glassdoor & ZipRecruiter"
authors = ["Zachary Hampton <zachary@bunsly.com>", "Cullen Watson <cullen@bunsly.com>"]
homepage = "https://github.com/Bunsly/JobSpy"
Expand Down
7 changes: 7 additions & 0 deletions src/jobspy/scrapers/linkedin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,5 +278,12 @@ def get_location(self, metadata_card: Optional[Tag]) -> Location:
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

0 comments on commit dfb8c18

Please sign in to comment.