Linkedin Mutual Connections Parser avatar
Linkedin Mutual Connections Parser
Try for free

3 days trial then $25.00/month - No credit card required now

View all Actors
Linkedin Mutual Connections Parser

Linkedin Mutual Connections Parser

saswave/linkedin-mutual-connections-parser
Try for free

3 days trial then $25.00/month - No credit card required now

Allows you to extract all informations from mutual connections of a linkedin profile url (1st and 2nd). Full name, jobtitle, premium status, followers, linkedin url, network distance, location, number of mutual connections

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8    "url": "https://www.linkedin.com/in/thomas-l/",
9    "cookies": [{
10            "domain": ".linkedin.com",
11            "expirationDate": 1742798742.32278,
12            "hostOnly": False,
13            "httpOnly": False,
14            "name": "test",
15            "path": "/",
16            "sameSite": "no_restriction",
17            "secure": True,
18            "session": False,
19            "storeId": "0",
20            "value": "To be changed. Check readme on how to extract cookie session from browser",
21            "id": 1,
22        }],
23}
24
25# Run the Actor and wait for it to finish
26run = client.actor("saswave/linkedin-mutual-connections-parser").call(run_input=run_input)
27
28# Fetch and print Actor results from the run's dataset (if there are any)
29print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
30for item in client.dataset(run["defaultDatasetId"]).iterate_items():
31    print(item)
32
33# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Developer
Maintained by Community
Actor metrics
  • 11 monthly users
  • 5 stars
  • 91.2% runs succeeded
  • 22 hours response time
  • Created in Nov 2023
  • Modified 2 months ago