Python Prompts Free Prompt

Python Script to Automate LinkedIn Profile Scraping

Write a Python script to scrape public LinkedIn profiles using Selenium
☆ Save
Prompt
You are a Python developer. Write a script that given a list of LinkedIn profile URLs, scrapes public information (name, headline, summary, experience). Use Selenium. The script must: 1) Log in with credentials, 2) Navigate to each profile, 3) Extract relevant fields, 4) Save to CSV, 5) Handle pagination for experience, 6) Add delays to avoid detection, 7) Handle profiles that require login. Add comments and a README.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.