Linkedin Posts Interactions Parser 馃煝 UpToDate 11 dec-2023 avatar
Linkedin Posts Interactions Parser 馃煝 UpToDate 11 dec-2023
Try for free

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

View all Actors
Linkedin Posts Interactions Parser 馃煝 UpToDate 11 dec-2023

Linkedin Posts Interactions Parser 馃煝 UpToDate 11 dec-2023

saswave/linkedin-posts-interactions-parser
Try for free

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

Allows you to extract all interactions from a post (comment, like, mentions). Input can be a /posts url. You can also provide a /company or /in url and it will parse multiple posts from the source (organic posts and promoted ads)

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 mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "url": "https://www.linkedin.com/company/financial-times/",
11    "days_since_post": 30,
12    "cookies": [
13        {
14            "domain": ".linkedin.com",
15            "expirationDate": 1716940616.08443,
16            "hostOnly": false,
17            "httpOnly": false,
18            "name": "test",
19            "path": "/",
20            "sameSite": "no_restriction",
21            "secure": true,
22            "session": false,
23            "storeId": "0",
24            "value": "fake",
25            "id": 1
26        }
27    ],
28    "proxyConfiguration": {
29        "useApifyProxy": true
30    }
31};
32
33(async () => {
34    // Run the Actor and wait for it to finish
35    const run = await client.actor("saswave/linkedin-posts-interactions-parser").call(input);
36
37    // Fetch and print Actor results from the run's dataset (if any)
38    console.log('Results from dataset');
39    const { items } = await client.dataset(run.defaultDatasetId).listItems();
40    items.forEach((item) => {
41        console.dir(item);
42    });
43})();
Developer
Community logoMaintained by Community
Actor metrics
  • 6 monthly users
  • 33.3% runs succeeded
  • 1.1 days response time
  • Modified about 1 month ago

You might also like these Actors