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
Node.js
Python
curl
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5 token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10 "startUrls": [
11 {
12 "url": "https://www.linkedin.com/in/elon-musk-elonmusk-6648688b"
13 }
14 ],
15 "gpt_api_key": "your_api_key",
16 "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.",
17 "cookies": [
18 {
19 "domain": ".linkedin.com",
20 "expirationDate": 1721120692,
21 "hostOnly": false,
22 "httpOnly": false,
23 "name": "xxxx_14215E3D5995C57C0A495C55%xxxx",
24 "path": "/",
25 "sameSite": "unspecified",
26 "secure": false,
27 "session": false,
28 "storeId": "0",
29 "value": "-637568504%7CMCIDTS%7C19xxxxxxxxxxxxx",
30 "id": 1
31 }
32 ]
33};
34
35(async () => {
36 // Run the Actor and wait for it to finish
37 const run = await client.actor("anchor/linkedin-gpt-prompt").call(input);
38
39 // Fetch and print Actor results from the run's dataset (if any)
40 console.log('Results from dataset');
41 console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42 const { items } = await client.dataset(run.defaultDatasetId).listItems();
43 items.forEach((item) => {
44 console.dir(item);
45 });
46})();
47
48// π Want to learn more π? Go to β https://docs.apify.com/api/client/js/docs