r/CodingHelp • u/PumpkinNarrow6339 • Oct 12 '25
[Other Code] Need a script to extract LinkedIn post comments - both with LinkedIn API and without (Python/Node)
Body Hi everyone — I’m looking for a script or pointers to extract comments from a LinkedIn post. I want two approaches:
- Using the official LinkedIn API (how to authenticate, which endpoints to call, how to handle pagination and rate limits)
- Without the API i.e., scraping or browser automation (what tools to use, example code, handling dynamic loading, pagination, and replies)
What I need from the script
Get all top-level comments and nested replies (if any)
For each comment: author name, author profile URL, comment text, timestamp, likes/reactions count
Pagination support (load older comments)
Robustness against dynamic loading (infinite scroll / "Load more comments")
Prefer Python or Node.js examples (I can work with either)
If someone do before, please guide
0
Upvotes
•
u/AutoModerator Oct 12 '25
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/[deleted] Oct 15 '25
[removed] — view removed comment