Warning: Before I show you how to scrape Linkedin groups, you should know this..
Every tactic that used to work, no longer does.
Very few strategies worked to begin with. But Linkedin’s new UI change just broke the very few remaining strategies.
So I decided to use my technical skills to build a custom tool just for the community! It allows you to extract all the members of a group to load your pipeline and hopefully grow your revenue!
Here is a step by step guide on how to scrape Linkedin members from a Linkedin group that you are already a member of.
1. Gathering the member list
First, go to the Linkedin Group you want to scrape. You will need to be a member, but once you get there, click the Members.
Once you do, it will take you to the money page! Uh, I mean members page.
We want to extract these people, but in order to get all of them (or at least thousands), we have to continue scrolling in order to load more members on the page (as seen in image above).
But doing this manually will take forever. So here is a code snippet that you can use to automatically scroll to the bottom of the list:
//Code snippet Start
//Code snippet end
To initiate autoscrolling, copy and paste this into your Chrome Browser Console like so:
This could take a few minutes, so sit back and relax. Or go share this post with your friends
It will stop scrolling when you reach the end of the results.
2. Extracting in the users
Once we have all of the members loaded on our page, it’s time to extract them from this page.
To do this, go to the top of the members box and highlight “Members List” then Right click > Inspect.
Once you do, highlight and copy (Copy Outer HTML) the line of code where it says item member-list-tab-layout-view (see below)
3. Extracting their linkedin URL’s
Now that we have copied that element, we can paste it into my custom script. If you don’t have it yet. Download it here.
This custom script will extract the real Linkedin URL’s and save them to a CSV for you.
In case you didn’t notice, Linkedin doesn’t actually expose their real url in groups.. They look like this:
But we need them to look like this
Which is why we are going to programmatically find them.
Open the custom python script I shared with you and paste the element (that we copied from Step 2) into line 9 of the script where it says “Enter Group Code Here”.
(if you have a hard time, watch the video at the bottom of the page)
And then, run the script from your terminal or favorite text editor and let the code work its magic!
Once it’s complete you will have a nice list of all the names and Linkedin URL’s of every group member.
Download the code:
Want to watch the video?