Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Malta for linkedin country support #198

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

AntGH
Copy link
Contributor

@AntGH AntGH commented Sep 19, 2024

Add Malta for LinkedIn and fix an error

Traceback:
Traceback (most recent call last):
  File "/home/user/.asdf/installs/python/3.12.6/lib/python3.12/site-packages/jobspy/scrapers/linkedin/__init__.py", line 147, in scrape
    job_post = self._process_job(job_card, job_id, fetch_desc)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.asdf/installs/python/3.12.6/lib/python3.12/site-packages/jobspy/scrapers/linkedin/__init__.py", line 194, in _process_job
    location = self._get_location(metadata_card)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.asdf/installs/python/3.12.6/lib/python3.12/site-packages/jobspy/scrapers/linkedin/__init__.py", line 303, in _get_locatio
n
    country = Country.from_string(country)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.asdf/installs/python/3.12.6/lib/python3.12/site-packages/jobspy/jobs/__init__.py", line 165, in from_string
    raise ValueError(
ValueError: Invalid country string: 'malta'. Valid countries are: <snip>

@cullenwatson cullenwatson merged commit 9239790 into Bunsly:main Sep 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants