Coconote
AI notes
AI voice & video notes
Try for free
🔍
Lead Generation through LinkedIn Scraping
Apr 28, 2025
Scraping LinkedIn Profiles for Lead Generation
Introduction
Objective: Demonstrate how to scrape LinkedIn profiles to generate new leads without using paid APIs.
Outcome: Create spreadsheets of LinkedIn leads with details such as:
Lead's name
Title
Link to their profile
Snippet of information from their profile
Method Overview
Use Google search to find LinkedIn profiles:
Target: Specific profiles like "CEOs in the automotive industry in the United States."
Example: Search string in Google returns results like "Jim Farley, CEO of Ford Motor Company."
Utilize Google Search API to scrape results and add them to Google Sheets.
Process Demonstration
Initial Setup
:
Delete existing search results to start fresh.
Use a chat command to trigger the sequence.
Execution
:
Use Google Search API to fetch results.
Extract and add results to Google Sheets.
Handle API limits with a wait block to prevent overloading.
Detailed Breakdown
Setting Fields
Variables
:
current_star_index
: Initialized to 1.
max_pages
: Initialized to 10.
Each API call returns 10 LinkedIn profiles.
Limit API calls to get up to 100 leads.
Google Search API Call
API Credentials
:
Requires API key and CX value from Google Cloud Console.
Search Parameters
:
Search for specific roles and industries.
Manage starting page dynamically for iterative searches.
API Call Looping Logic
Checks if additional pages are available.
Iteratively fetches subsequent pages if more results exist.
Setting Up Google API
Steps
:
Create a project in Google Cloud Console.
Enable Custom Search API.
Generate API key.
Set up a programmable search engine.
API Limits
:
Free tier: 100 requests/day, generating up to 1,000 leads per day.
Extracting and Storing Data
Code node extracts relevant data from API response.
Info includes name, snippet, URL.
Maps data to Google Sheets.
Pagination and Looping
Logic
:
Check current index and loop conditions.
Ensure continuous fetching until no more results are available.
Credentials Configuration
Steps to enable and configure Google Cloud project and APIs.
Conclusion
Successful scraping and storage of LinkedIn leads.
Encouragement to engage with video to aid algorithm.
Additional Info
Video promotes an AI community offering weekly calls, behind-the-scenes content, and more.
Collaboration with a lead generation expert.
Community starting price at $55.
Ending Notes
Reminder to like and comment on the video to support growth.
📄
Full transcript