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

feat: extend logic to Linkedin #3

Open
msramalho opened this issue Jul 5, 2023 · 2 comments
Open

feat: extend logic to Linkedin #3

msramalho opened this issue Jul 5, 2023 · 2 comments
Labels
contributions welcome Not an internal priority but may interest OS developers or users enhancement New feature or request

Comments

@msramalho
Copy link
Contributor

msramalho commented Jul 5, 2023

To do so, replicate the parsing logic implemented in https://ollie-boyd.github.io/Linkedin-post-timestamp-extractor/ and add the necessary changes to:

any additional css/js changes.

Please include screenshots/example URLs in any PR.

@msramalho msramalho added enhancement New feature or request good first issue Good for newcomers labels Jul 5, 2023
@fspoettel
Copy link
Contributor

fspoettel commented Jul 18, 2023

I took a quick stab at this and was able to get it to work on individual posts.

It turned out to be harder than I expected on the home feed: The method outlined in the repo looks at post urn values. For the home feed, this value relates to the top-level activity (share, like, comment...), so the parsed timestamp does not relate to the original post for re-shares. As far as I can tell, the only way to get the original urn is by using the Copy link to post clipboard functionality, which calls an HTTP endpoint to retrieve the URL to the the post. I was not able to find the original urn in the DOM.

@msramalho
Copy link
Contributor Author

Interesting, I had a similar challenge with tiktok where the "you may like" video thumbnails also had no urn available to extract the timestamp.

Do you think it's possible to silently make these HTTP requests to get Copy link button?

@msramalho msramalho added contributions welcome Not an internal priority but may interest OS developers or users and removed good first issue Good for newcomers labels Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributions welcome Not an internal priority but may interest OS developers or users enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants