akitten / linkedin-public-profile-parser

:innocent: Parse a *Public* LinkedIn Profile Page
GNU General Public License v2.0
93 stars 21 forks source link

Convert urls (internal to external) #29

Open janober opened 9 years ago

janober commented 9 years ago

Hi,

sorry is not about the script but directly related. I thought if anybody knows it is probably any of you.

Is there any way to convert the urls I get displayed when I am logged-in at linkedin into one that is accessible when I am not logged in?

So for example when I am logged-in I get profile-urls like this: https://www.linkedin.com/profile/view?id={PROFILE-ID} They work great as long as I am logged in but when I am not (like for example the parser would be) it does not. Then it forwards to a login/register page.

So I have to convert the above url into the public one. So something like this: https://www.linkedin.com/pub/{NAME}/{NUMBER1}/{NUMBER2}/{NUMBER3} or https://de.linkedin.com/in/{USERNAME}

Does anybody of you know how or if it is even possible?

Thanks!

nelsonic commented 9 years ago

Your wish is our command: https://github.com/akitten/linkedin-canonical-url

janober commented 9 years ago

First thanks a lot and that will be very helpful for the url-normalization! However does sadly just work with other "external" urls.

If I take Elon Musk as example. When I am logged in, and I look for him I get an url like this (internal-url): https://www.linkedin.com/profile/view?id=ADEAABl_naQBD-VeAJtZ443VrQ2OmeldyVXPmDw

When I visit it as long as I am logged in, it works fine. However when I am logged out I just get the login/registration page displayed. So what I try to get is the public-url that I can visit without being logged in from the above internal-url.