Get Linkedin URL posts from profile/company
1 day trial then $25.00/month - No credit card required now
Get Linkedin URL posts from profile/company
1 day trial then $25.00/month - No credit card required now
Generate a list of posts url from a target profile or company. Extract posts at scale within a date range or a number of days since posting
You can access the Get Linkedin URL posts from profile/company programmatically from your own Python applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = {
9 "url": "https://www.linkedin.com/in/christianlim/",
10 "days_since_post": 14,
11 "cookies": [{
12 "domain": ".linkedin.com",
13 "expirationDate": 1742798742.32278,
14 "hostOnly": False,
15 "httpOnly": False,
16 "name": "test",
17 "path": "/",
18 "sameSite": "no_restriction",
19 "secure": True,
20 "session": False,
21 "storeId": "0",
22 "value": "To be changed. Check readme on how to extract cookie session from browser",
23 "id": 1,
24 }],
25 "proxyConfiguration": { "useApifyProxy": False },
26}
27
28# Run the Actor and wait for it to finish
29run = client.actor("saswave/get-linkedin-url-posts-from-profile-company").call(run_input=run_input)
30
31# Fetch and print Actor results from the run's dataset (if there are any)
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# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Get Linkedin URL posts from profile/company API in Python
The Apify API client for Python is the official library that allows you to use Get Linkedin URL posts from profile/company API in Python, providing convenience functions and automatic retries on errors.
Install the apify-client
pip install apify-client
Other API clients include:
Actor Metrics
22 monthly users
-
7 stars
71% runs succeeded
8.8 hours response time
Created in Feb 2024
Modified 4 days ago