Scrape comments of linkedin post in few lines of python code

If you are a hr manager or hiring on linkedin, then for sure you will be having the comments on linkedin post for job application which you have posted. If you want to analyse the data of comments for some purpose then here is the datakund library which makes it easy for you with a code of few lines. Following are the code blocks to move on:-

  1. Install datakund library
pip install datakund

2. Import datakund and login to linkedin. You can see here to login with cookies. And then post link.

linkedin.open('post link')

3. Get the comments now by calling a simple function get_comments