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

LinkedIn changed json format - images in html output are broken - fix included #8

Open
Green-Wolf opened this issue Mar 20, 2018 · 3 comments

Comments

@Green-Wolf
Copy link

LinkedIn have changed their json format

So the code on line 212 no longer works:
data_picture = "https://media.licdn.com/mpr/mpr/shrinknp_400_400%s" % c['hitInfo']['com.linkedin.voyager.search.SearchProfile']['miniProfile']['picture']['com.linkedin.voyager.common.MediaProcessorImage']['id']

It should be replaced with:
data_picture = c['hitInfo']['com.linkedin.voyager.search.SearchProfile']['miniProfile']['picture']['com.linkedin.common.VectorImage']['rootUrl'] + c['hitInfo']['com.linkedin.voyager.search.SearchProfile']['miniProfile']['picture']['com.linkedin.common.VectorImage']['artifacts'][3]['fileIdentifyingUrlPathSegment']

The [3] is the highest quality 800x800 but could be replaced with [0],[1] or [2] for lower quality images.

@sandroded
Copy link

THank you. Works for me.

@vysecurity
Copy link
Contributor

Thanks, this was updated on my branch.

@andrescobre
Copy link

Thankss for all !!!

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