scrape_profile
Pulls recent LinkedIn posts from any company or personal profile URL and saves them to the database, supporting prospect research even for accounts not yet tracked.
Instructions
Scrape fresh LinkedIn posts from any company or personal profile URL via Apify and store them in the database. Works for profiles NOT yet in the database.
Use this when the user asks about a LinkedIn account that list_accounts() doesn't return, or when they want up-to-date posts for an existing account.
Requires APIFY_API_TOKEN to be set in the project .env file.
Args: url: Full LinkedIn URL of the company or person to scrape. Examples: https://www.linkedin.com/company/acme-charging https://www.linkedin.com/in/williamhgates max_posts: Maximum number of posts to fetch (default 30, max 100).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| max_posts | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |