xmyoot / linkedin-web-scraper

a node.js package for getting job listings from linkedin.com
MIT License
5 stars 0 forks source link

Get external site job URL #1

Open calvinomiguel opened 2 years ago

calvinomiguel commented 2 years ago

Currently the scraper returns only the URL of the linkedin job ad. It'd be great to have the link to the external page. However in order to do this, you need to take into account that not all job ads have an external link. Some only have linkedin's easy apply method.

Maybe this info might help: I realized that in the Document there are some code elements, which contain JSON objects. In these JSON objects we can find a job by their ID and from there localize the external apply URL.

grafik

One object looks like this:

grafik

an the job ID is this number I highlighted here:

grafik

and the job ID can be found here in the attribute data-job-id

grafik

I am trying to update it myself, but I a newbie 🙈

xmyoot commented 2 years ago

Hello,

Thank you for the suggestion. I didn't even know there was a code element with all of those objects. I will look into this. Thanks again for your interest