fix(linkedin): resolve issue where locaion is null

This commit is contained in:
Cullen Watson
2023-07-08 21:16:34 -05:00
parent 0da7ea59d0
commit 405842f90e
4 changed files with 8 additions and 7 deletions

View File

@@ -78,6 +78,9 @@ class LinkedInScraper(Scraper):
@staticmethod
def get_location(metadata_card):
location = Location(
country="US",
)
if metadata_card is not None:
location_tag = metadata_card.find(
"span", class_="job-search-card__location"