Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/vrashmanyu605-eng/Agentic_Sales-Markerting/llms.txt

Use this file to discover all available pages before exploring further.

The LinkedIn finder helps agents identify the right people to contact at a target company. It constructs a targeted DuckDuckGo query scoped to site:linkedin.com/in/ and filtered to engineering leadership titles, then returns up to five matching profiles with their LinkedIn URLs and a summary snippet — all without touching the LinkedIn API.
This tool uses a site:linkedin.com/in/ search via DuckDuckGo — no LinkedIn API credentials or cookies are required.

Source code

linkedin_finder.py
from ddgs import DDGS

def find_linkedin_profiles(company_name):
    query = f'''
        site:linkedin.com/in/
        ("{company_name}")
        ("CTO" OR
        "CIO" OR
        "VP Engineering" OR
        "Head of Engineering" OR
        "Director Engineering" OR
        "Head of AI" OR
        "Head of Technology" OR
        "Engineering Manager")
    '''
    profiles = []
    try:
        with DDGS() as ddgs:
            results = list(ddgs.text(
                query,
                max_results=5
            ))
            for result in results:
                profiles.append({
                    "title": result.get("title"),
                    "linkedin_url": result.get("href"),
                    "snippet": result.get("body")
                })
    except Exception as e:
        print(f"LinkedIn search error: {e}")
    return profiles

find_linkedin_profiles()

Searches DuckDuckGo for LinkedIn profiles of engineering leaders at the named company.

Parameters

company_name
string
required
The name of the company to search within, e.g. "Acme Corp". The name is wrapped in quotes in the query to require an exact match.

Return value

Returns a list of up to 5 dict objects, one per profile found. Each dict contains:
title
string
The LinkedIn page title as indexed by DuckDuckGo, typically in the format "First Last - Job Title - Company | LinkedIn".
linkedin_url
string
The direct URL to the LinkedIn profile, e.g. "https://www.linkedin.com/in/jane-doe-cto".
snippet
string
A short description from the search result — usually the person’s headline or a brief bio excerpt.
If the search raises an exception, the error is printed and an empty list is returned.

Roles searched

The query matches profiles that include any of the following titles:
  • CTO
  • CIO
  • VP Engineering
  • Head of Engineering
  • Director Engineering
  • Head of AI
  • Head of Technology
  • Engineering Manager

Example return value

[
  {
    "title": "Jane Doe - CTO - Acme Corp | LinkedIn",
    "linkedin_url": "https://www.linkedin.com/in/jane-doe-cto",
    "snippet": "CTO at Acme Corp. 15 years building distributed systems. Previously at Google and Stripe."
  },
  {
    "title": "Bob Smith - VP Engineering - Acme Corp | LinkedIn",
    "linkedin_url": "https://www.linkedin.com/in/bob-smith-vp-eng",
    "snippet": "VP Engineering at Acme Corp leading platform and infrastructure teams."
  }
]
Results depend on public LinkedIn profiles that DuckDuckGo has indexed. Profiles set to private, recently updated profiles, or people who have opted out of search engine indexing may not appear. Cross-check results before using them for outreach.

Build docs developers (and LLMs) love