Python pipeline to extract LinkedIn Analytics demographic data using Playwright and export it into KNIME for further analysis.
This script automates the collection of audience insights:
- Logs into LinkedIn: supports manual or automatic login.
- Navigates: goes directly to the LinkedIn Analytics demographics page.
- Extracts percentage-based demographic data such as:
- Job title
- Location
- Industry
- Seniority
- Company size
- Function
- Outputs: the data as a table directly into KNIME.
- Python
- Playwright
- Pandas
- KNIME (Python Scripting node)
This project uses uv for dependency management.
uv add playwright pandas
uv run playwright install chromiumThe script is intended to be executed inside a KNIME Python Script node.
- Open KNIME
- Add a Python Script node
- Point the node to this project environment
- Run
main.py - Login manually to LinkedIn if required
- Output: The data will be available as a KNIME table.
You can find a full demo and explanation in this video:
This project is for educational and personal analytics purposes only. Use responsibly and respect LinkedIn's terms of service.