Linkedin x GPT prompt
Try for free
3 days trial then $29.00/month - No credit card required now
View all Actors
Linkedin x GPT prompt
anchor/linkedin-gpt-prompt
Try for free
3 days trial then $29.00/month - No credit card required now
Extract LinkedIn profiles, and uses ChatGPT magic automatically on each profile ! Your prompt, the answer you need, the way you want.
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 "startUrls": [{ "url": "https://www.linkedin.com/in/elon-musk-elonmusk-6648688b" }],
9 "gpt_api_key": "your_api_key",
10 "instructions": "Is this person a good candidate for the following job description : Sales Manager of a car company? Why? Also, Add a rating from 0 to 10 to summarize.",
11 "cookies": [{
12 "domain": ".linkedin.com",
13 "expirationDate": 1721120692,
14 "hostOnly": False,
15 "httpOnly": False,
16 "name": "xxxx_14215E3D5995C57C0A495C55%xxxx",
17 "path": "/",
18 "sameSite": "unspecified",
19 "secure": False,
20 "session": False,
21 "storeId": "0",
22 "value": "-637568504%7CMCIDTS%7C19xxxxxxxxxxxxx",
23 "id": 1,
24 }],
25}
26
27# Run the Actor and wait for it to finish
28run = client.actor("anchor/linkedin-gpt-prompt").call(run_input=run_input)
29
30# Fetch and print Actor results from the run's dataset (if there are any)
31print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
32for item in client.dataset(run["defaultDatasetId"]).iterate_items():
33 print(item)
34
35# π Want to learn more π? Go to β https://docs.apify.com/api/client/python/docs/quick-start