How to find the target URLs for Linkedin redirect links! Thank you!

I’m trying to use this in a more complicated example but for simplicity sake i have a list of URLs scraped from Linkedin, some of them are the redirect URLs that it gives you when scraping ‘Likes’, for example.

Scrape Result: https://www.linkedin.com/in/ACoAACeNsOoBxGGEtZfEvrgZ12578xRodrjRptE?lipi=urn%3Ali%3Apage%3Ad_flagship3_search_srp_content%3BkxcGOW7uQ%2BGKfptDqCXpIA%3D%3D
Target URL: https://www.linkedin.com/in/damiandevries/

I’d like to find the actual profile URL (target URL) after the redirect.

My plan is to use it to look up contacts in apollo and right now I am manually inserting all the target URLs and hope I can automate!

Thanks for your help!

Hi @James_Gregg and welcome to Make!

I wouldn’t be surprised if it were done on purpose, to avoid accessing in an automated way without using the official LinkedIn API.

That said, this might be of interest:

L

2 Likes

Welcome to the Make community!

@L_Duperval is correct – LinkedIn does this on purpose.

There are some possible workarounds mentioned, which suggests including proper values for the HTTP request headers “accept”, “accept-encoding”, “accept-language”, and “user-agent”.

For more information and details on possible workarounds, see

I also mentioned an alternative in the linked thread that @L_Duperval posted, which is to use an existing unofficial LinkedIn API on RapidAPI that already does the scraping for you.

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

2 Likes

Appreciate your response. I appreciate the time you put into this! I guess I’m surprised there’s no easy way just to get the redirect URL target. Not even trying to scrap Linkedin in this step, just get their actual profile URL instead of the encrypted one.

Anyway, I appreciate the help!

@samliew Thanks for your response! This was very helpful!

I just said this in response to the other reply but I can’t believe there’s no way to get the target URL from the encrypted URL without needing to necessarily “scrape” linkedin.

With my technical abilities I’m afraid some of these solutions are above my paygrade haha.