1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://www.linkedin.com/in/elon-musk-elonmusk-6648688b" }],
10 "gpt_api_key": "your_api_key",
11 "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.",
12 "cookies": [{
13 "domain": ".linkedin.com",
14 "expirationDate": 1721120692,
15 "hostOnly": False,
16 "httpOnly": False,
17 "name": "xxxx_14215E3D5995C57C0A495C55%xxxx",
18 "path": "/",
19 "sameSite": "unspecified",
20 "secure": False,
21 "session": False,
22 "storeId": "0",
23 "value": "-637568504%7CMCIDTS%7C19xxxxxxxxxxxxx",
24 "id": 1,
25 }],
26}
27
28
29run = client.actor("anchor/linkedin-gpt-prompt").call(run_input=run_input)
30
31
32print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
33for item in client.dataset(run["defaultDatasetId"]).iterate_items():
34 print(item)
35
36