Skip to content

Instantly share code, notes, and snippets.

@maldevel
Last active January 2, 2024 12:10
Show Gist options
  • Save maldevel/a33f25d8aeeb8872748577998464819e to your computer and use it in GitHub Desktop.
Save maldevel/a33f25d8aeeb8872748577998464819e to your computer and use it in GitHub Desktop.
Export Full names from organization's linkedin people page.
#!/usr/bin/python3
import re
import sys
if len(sys.argv) < 2:
print("Usage: python3 export-linkedin-name.py <page.html>")
exit(1)
filename = sys.argv[1]
with open(filename, 'r', encoding="utf8") as file:
data = file.read()
p = re.compile("ember-view lt-line-clamp lt-line-clamp--single-line org-people-profile-card__profile-title t-black\" style=\"\">\n\s+(.*)\n")
matches = p.findall(data)
for match in matches:
print(match)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment