Transform Linkedin Profile Picture Url to Linkedin Url
Try for free
3 days trial then $15.00/month - No credit card required now
View all Actors
Transform Linkedin Profile Picture Url to Linkedin Url
saswave/transform-linkedin-profile-picture-url-to-linkedin-url
Try for free
3 days trial then $15.00/month - No credit card required now
From a linkedin profile picture url, find the corresponding linkedin profile url. Help cleaning & enrich linkedin data at scale.
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 = { "profile_pictures": [
8 "https://media.licdn.com/dms/image/C4D03AQHVvyYpM3GSaA/profile-displayphoto-shrink_400_400/0/1633521628401?e=1725494400&v=beta&t=viWkY2n6TmOJLB8dUSh1Wh68BJDEtYZgWoQ_hSW1qJM",
9 "https://media.licdn.com/dms/image/D4E03AQFOYh3-FG-Sdg/profile-displayphoto-shrink_400_400/0/1712140213350?e=1725494400&v=beta&t=h2LbewGgo7JT4eJTgdctyVeG5eiIdI_HrQyDNzRu4to",
10 "https://media.licdn.com/dms/image/C560BAQFVcVGPEl9A0w/company-logo_200_200/0/1633614105019/amazonadvertising_logo?e=1727913600&v=beta&t=dG-PpYbh2uZeQLRb391gleZMaLnl43HIFToH7gztlbQ",
11 "https://media.licdn.com/dms/image/C4D0BAQETFX2wqciMGQ/company-logo_200_200/0/1673275448043/nativeteams_logo?e=1727913600&v=beta&t=QDsU1TlS-aIXmckfIJMfxnX11SDMx3cNALPVTVyHUl8",
12 ] }
13
14# Run the Actor and wait for it to finish
15run = client.actor("saswave/transform-linkedin-profile-picture-url-to-linkedin-url").call(run_input=run_input)
16
17# Fetch and print Actor results from the run's dataset (if there are any)
18print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
19for item in client.dataset(run["defaultDatasetId"]).iterate_items():
20 print(item)
21
22# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Developer
Maintained by Community
Actor metrics
- 1 monthly user
- 2 stars
- 100.0% runs succeeded
- Created in Jul 2024
- Modified 2 months ago
Categories