Linkedin Posts Informations Parser 馃煝 UpToDate 9 feb-2024 avatar
Linkedin Posts Informations Parser 馃煝 UpToDate 9 feb-2024
Try for free

1 day trial then $19.00/month - No credit card required now

View all Actors
Linkedin Posts Informations Parser 馃煝 UpToDate 9 feb-2024

Linkedin Posts Informations Parser 馃煝 UpToDate 9 feb-2024

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

1 day trial then $19.00/month - No credit card required now

Allows you to extract all informations from a post (number of likes, comments, shares, video, image, document, article link with the exact date and time of the post). Input can be a /posts /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-informations-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
  • 31 monthly users
  • 38.6% runs succeeded
  • 1.2 days response time
  • Modified 11 days ago

You might also like these Actors