tomquirk / linkedin-api

👨‍💼Linkedin API for Python
MIT License
1.71k stars 401 forks source link

search_jobs() company URN ID filter does not work #312

Closed mehmetgencol closed 1 year ago

mehmetgencol commented 1 year ago

Hello, and thank you for this great module. My problem is that I want to search job posts only of specific companies. Here is how I try:

from linkedin_api import Linkedin

api = Linkedin(mail, password)
result1 = api.search_jobs(companies = ['7990'], limit =5)  # does not give any result
result2 = api.search_jobs(companies = ['"7990"'], limit =5) # gives result but no company urn filter is applied

I use version 2.0.1

How can I fix this issue?

mehmetgencol commented 1 year ago

I am still on this issue. I found that I search company with normalized_company URN ID which is human readable. When I use

api.get_company(7990)

I can get the details of the company. However, the problem in search_jobs still exists

mehmetgencol commented 1 year ago

I took source code and use as library on my code instead of pip install, problem is solved.