Last active
January 2, 2024 12:10
-
-
Save maldevel/a33f25d8aeeb8872748577998464819e to your computer and use it in GitHub Desktop.
Export Full names from organization's linkedin people page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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