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

Adjust search parameters #9

Open
lenni-1089 opened this issue Sep 12, 2024 · 5 comments
Open

Adjust search parameters #9

lenni-1089 opened this issue Sep 12, 2024 · 5 comments

Comments

@lenni-1089
Copy link

Thank you so much for sharing the scripts with us!
This might be a stupid question, as I am a beginner but is there a way to adjust the job search parameters to filter and specify the search to ones interests? As for example: location, keywords, type of employment etc.

Thanks a lot for your support!

@AndhikaWB
Copy link
Collaborator

AndhikaWB commented Sep 13, 2024

Hi @lenni-1089, I no longer develop this project, but try this approach:

  1. Open https://www.linkedin.com/jobs/search on your browser
  2. Customize your search criteria (location, etc)
  3. Copy the browser URL
  4. Replace this URL with the browser URL:
    driver.get('https://www.linkedin.com/jobs/search/?')
  5. Restart the script if already running before, and delete the previous database file if necessary

Also, can you confirm if this approach work for you? (since I don't have the time to test it right now)

@mertalpaydin
Copy link

I've done the testing. Unfortunately, changing line 26 does not work. However, changing line 45 done the trick. I've managed to add a geo and keyword parameter this way.

self.job_search_link = 'https://www.linkedin.com/voyager/api/voyagerJobsDashJobCards?decorationId=com.linkedin.voyager.dash.deco.jobs.search.JobSearchCardsCollection-187&count=100&q=jobSearch&query=(origin:JOB_SEARCH_PAGE_OTHER_ENTRY,selectedFilters:(sortBy:List(DD)),keywords:Data Analyst,locationUnion:(geoId:101282230),spellCorrectionEnabled:true)&start=0'

@AndhikaWB
Copy link
Collaborator

Oops, right, after reading the script a bit more, it's just a placeholder link to get cookies.
I was sure it scraped the job details from that link, I guess I was wrong.
Thank you for your comment @mertalpaydin


It seems that you can use location name as well:
https://www.linkedin.com/jobs/search/?currentJobId=XXXXX&location=Jakarta,Indonesia

Or by changing locationUnion:(geoId:XXXXX)
to locationUnion:(seoLocation:(location:Jakarta,Indonesia))
if you use Voyager API

@uchiharon
Copy link

Hi,

Is this issue completely closed, if not, what other parameters do you intend to filter on, I intend to work on them.

@AndhikaWB
Copy link
Collaborator

@uchiharon I think I have the permission the merge the commit if you want to open a pull request.

@ArshKA made me a contributor back then, but it seems that neither of us has time to keep maintaining this one.

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

No branches or pull requests

4 participants