From dfb8c18c518496009fb6210e7e526e5358c720f8 Mon Sep 17 00:00:00 2001 From: Faraz Khan Date: Sat, 11 Nov 2023 03:59:42 +0500 Subject: [PATCH] include location with 3 parts (#69) --- pyproject.toml | 2 +- src/jobspy/scrapers/linkedin/__init__.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 12a694d..08272d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ", "Cullen Watson "] homepage = "https://github.com/Bunsly/JobSpy" diff --git a/src/jobspy/scrapers/linkedin/__init__.py b/src/jobspy/scrapers/linkedin/__init__.py index 5fcc696..67d2898 100644 --- a/src/jobspy/scrapers/linkedin/__init__.py +++ b/src/jobspy/scrapers/linkedin/__init__.py @@ -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