Skip to content

Commit 4ff95e8

Browse files
committed
fix: add slug and timestamp to json output; readd logo
1 parent 8a4bf52 commit 4ff95e8

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

linkedindumper.py

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,21 @@
5050
}
5151
cookies_dict = {"li_at": li_at, "JSESSIONID": JSESSIONID}
5252

53+
def print_logo():
54+
print("""\
55+
56+
██▓ ██▓ ███▄ █ ██ ▄█▀▓█████ ▓█████▄ ██▓ ███▄ █ ▓█████▄ █ ██ ███▄ ▄███▓ ██▓███ ▓█████ ██▀███
57+
▓██▒ ▓██▒ ██ ▀█ █ ██▄█▒ ▓█ ▀ ▒██▀ ██▌▓██▒ ██ ▀█ █ ▒██▀ ██▌ ██ ▓██▒▓██▒▀█▀ ██▒▓██░ ██▒▓█ ▀ ▓██ ▒ ██▒
58+
▒██░ ▒██▒▓██ ▀█ ██▒▓███▄░ ▒███ ░██ █▌▒██▒▓██ ▀█ ██▒░██ █▌▓██ ▒██░▓██ ▓██░▓██░ ██▓▒▒███ ▓██ ░▄█ ▒
59+
▒██░ ░██░▓██▒ ▐▌██▒▓██ █▄ ▒▓█ ▄ ░▓█▄ ▌░██░▓██▒ ▐▌██▒░▓█▄ ▌▓▓█ ░██░▒██ ▒██ ▒██▄█▓▒ ▒▒▓█ ▄ ▒██▀▀█▄
60+
░██████▒░██░▒██░ ▓██░▒██▒ █▄░▒████▒░▒████▓ ░██░▒██░ ▓██░░▒████▓ ▒▒█████▓ ▒██▒ ░██▒▒██▒ ░ ░░▒████▒░██▓ ▒██▒
61+
░ ▒░▓ ░░▓ ░ ▒░ ▒ ▒ ▒ ▒▒ ▓▒░░ ▒░ ░ ▒▒▓ ▒ ░▓ ░ ▒░ ▒ ▒ ▒▒▓ ▒ ░▒▓▒ ▒ ▒ ░ ▒░ ░ ░▒▓▒░ ░ ░░░ ▒░ ░░ ▒▓ ░▒▓░
62+
░ ░ ▒ ░ ▒ ░░ ░░ ░ ▒░░ ░▒ ▒░ ░ ░ ░ ░ ▒ ▒ ▒ ░░ ░░ ░ ▒░ ░ ▒ ▒ ░░▒░ ░ ░ ░ ░ ░░▒ ░ ░ ░ ░ ░▒ ░ ▒░
63+
░ ░ ▒ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░░░ ░ ░ ░ ░ ░░ ░ ░░ ░
64+
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
65+
░ ░ ░ by LRVT
66+
""")
67+
5368
def clean_data(data):
5469
emoj = re.compile("[\U0001F600-\U0001F64F\U0001F300-\U0001F5FF"
5570
"\U0001F680-\U0001F6FF\U0001F1E0-\U0001F1FF"
@@ -137,8 +152,18 @@ def main():
137152
required_pagings = -(-paging_total // 10)
138153

139154
employee_dict = []
155+
156+
print_logo()
157+
158+
print("[i] Company Name: " + company)
159+
print("[i] Company X-ID: " + company_id)
160+
print("[i] LN Employees: " + str(paging_total) + " employees found")
161+
print("[i] Dumping Date: " + datetime.now().strftime("%d/%m/%Y %H:%M:%S"))
162+
if mailformat:
163+
print("[i] Email Format: " + mailformat)
164+
140165
if args.output_csv or args.output_json:
141-
print()
166+
print()
142167
for page in progressbar(range(required_pagings), "Progress: ", 40):
143168
if args.jitter:
144169
time.sleep(random.choice([0.5, 1, 0.8, 0.3, 3, 1.5, 5]))
@@ -184,6 +209,8 @@ def main():
184209
output_data = {
185210
"company_id": company_id,
186211
"company_url": url,
212+
"company_slug": company,
213+
"timestamp": datetime.now().isoformat(),
187214
"employees": employee_dict
188215
}
189216
with open(args.output_json, 'w', encoding='utf-8') as f:

0 commit comments

Comments
 (0)