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

Access embeddede images & Videos #450

Open
kqvanity opened this issue Oct 29, 2024 · 3 comments
Open

Access embeddede images & Videos #450

kqvanity opened this issue Oct 29, 2024 · 3 comments

Comments

@kqvanity
Copy link

I'd like to access the accompanying media e.g., image direct URLs, videos.

it's should ideally be signified as well!
Thanks!

@BennyDanielT
Copy link

You can construct them by retrieving the displayImageUrl and img_400_400 URL.

local_api = Linkedin(
            os.getenv("LINKEDIN_EMAIL"),
            os.getenv("LINKEDIN_PASSWORD"),
            cookies=cookie_jar,
        )
        profile = local_api.get_profile(profile_id)
        display_picture_url = profile.get("displayPictureUrl", "")
        img_400_400 = profile.get("img_400_400", "")
        parsed_image_url = f"{display_picture_url}{img_400_400}"

Let me know, if you have further questions.

@kqvanity
Copy link
Author

I mean the actual content of the LinkedIn Post itself,
where the author might've uploaded many photos.

@BennyDanielT
Copy link

I see. Let me play around, I'll keep you posted!

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

2 participants