forked from daprofiler/DaProfiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofiler.py
More file actions
557 lines (498 loc) · 25.3 KB
/
profiler.py
File metadata and controls
557 lines (498 loc) · 25.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
from colorama.initialise import init
from update_check import update
## ------------------------- Update the code -------------------------
def update_funct():
print("\nUpdating Modules ...\n")
update('modules/linkedin_search.py','https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/linkedin_search.py')
update("modules/visual/logging.py","https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/visual/logging.py")
update("modules/copainsdavant_search.py", "https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/copainsdavant_search.py")
update("modules/death_records.py", "https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/death_records.py")
update("modules/dirigeants_bfmtv.py", "https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/dirigeants_bfmtv.py")
update("modules/facebook_search.py", "https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/facebook_search.py")
update("modules/mail_check.py", "https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/mail_check.py")
update("modules/mail_gen.py", "https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/mail_gen.py")
update("modules/pagesblanches_search.py", "https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/pagesblanches_search.py")
update("modules/skype_search.py", "https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/skype_search.py")
update("modules/twitter_search.py", "https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/twitter_search.py")
update("modules/report.json","https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/report.json")
update("profiler.py", "https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/profiler.py")
update("modules/mail_domain.txt","https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/modules/mail_domain.txt")
update("requirements.txt","https://raw.githubusercontent.com/TheRealDalunacrobate/DaProfiler/main/requirements.txt")
from json import decoder
import threading, time, colorama, treelib, random, sys, os, argparse, json, requests, webbrowser, socketio, string
from tqdm import tqdm
from treelib import Node, Tree
from colorama import Fore, Back, Style, init
from statistics import mean
init(autoreset=True)
from modules import skype_search
from modules import pagesblanches_search
from modules import copainsdavant_search
from modules import instagram_search
from modules import dirigeants_bfmtv
from modules import death_records
from modules import twitter_search
from modules import facebook_search
from modules import mail_gen
from modules import scylla_sh
from modules import mail_check
from modules import linkedin_search
from modules.visual import logging
from modules.api_modules import leakcheck_net
banner = False
# Opening json report template
data_file = open('modules/report.json','r')
data_export = json.load(data_file)
data_file.close()
# Affichage de la banniere
def banner():
if sys.platform == 'win32':
os.system('cls')
else:
os.system('clear')
art = """"""
print(art)
print("DaProfiler - Inspired from Profiler CToS #watchdogs")
print("Github : https://github.com/TheRealDalunacrobate\n\n\n")
banner()
# Get the arguments
parser = argparse.ArgumentParser()
parser.add_argument("-n", "--name", help="Victim name")
parser.add_argument('-ln','--lastname',help="Last name of victim")
parser.add_argument('-u','--update',help="Update DaProfiler")
args = parser.parse_args()
# Set the vars
name = (args.lastname)
pren = (args.name)
do_upgrade = (args.update)
def randomString(length):
return ''.join(random.choice(string.ascii_letters) for i in range(length))
thisIsATmpTokenListener = randomString(25);
# Def var
logging.speculos_lotus()
possible_usernames = []
folder_name = "{}_{}".format(pren,name)
personnal_life = []
social_medias = []
# Crraeate the folder for the reports
try:
os.mkdir('Reports')
except FileExistsError:
pass
try:
os.mkdir('Reports/{}'.format(folder_name))
except FileExistsError:
pass
# Main
try:
if pren and name is not None:
bar = tqdm(desc="Searching over social medias and adresses",total=9,leave=True)
try:
copainsdavant_results = copainsdavant_search.copains_davant(name=name,pren=pren)
except:
copainsdavant_results = None
bar.update(1)
bar.get_lock()
try:
facebook_results = facebook_search.facebook_search(name=name,pren=pren)
except:
facebook_results = None
bar.update(1)
try:
twitter_results = twitter_search.twitter_search(name=name,pren=pren)
except:
twitter_results = None
bar.update(1)
try:
avis_deces_results = death_records.death_search(name=name,pren=pren)
except:
avis_deces_results = None
bar.update(1)
try:
bfmtv_results = dirigeants_bfmtv.bfmtv_search(name=name,pren=pren)
except:
bfmtv_results = None
bar.update(1)
try:
instagram_results = instagram_search.ig_search(name=name,pren=pren)
except:
instagram_results = None
bar.update(1)
try:
skype_results = skype_search.skype_searchh(name=name,pren=pren)
except:
skype_results = None
bar.update(1)
try:
pagesblanche = pagesblanches_search.adresse_search(name=name,pren=pren)
except:
pagesblanche = None
bar.update(1)
try:
linkedin_results = linkedin_search.linkedin_search(name=name,pren=pren)
except:
linkedin_results = None
bar.update(1)
bar.close()
possible_mail = mail_gen.check(name=name,pren=pren)
skype2mail = mail_gen.skype2email(name=name,pren=pren)
pin2mail = mail_gen.pinterest2email(name=name,pren=pren)
elif len(pren) and len(name) == 0:
linkedin_results = None
facebook_results = None
twitter_results = None
avis_deces_results = None
bfmtv_results = None
instagram_results = None
copainsdavant_results = None
skype_results = None
pagesblanche = None
possible_mail = None
skype2mail = None
pren = ""
name = ""
else:
linkedin_results = None
facebook_results = None
twitter_results = None
avis_deces_results = None
bfmtv_results = None
instagram_results = None
copainsdavant_results = None
skype_results = None
pagesblanche = None
possible_mail = None
skype2mail = None
pren = ""
name = ""
except TypeError:
linkedin_results = None
facebook_results = None
twitter_results = None
avis_deces_results = None
bfmtv_results = None
instagram_results = None
copainsdavant_results = None
skype_results = None
pagesblanche = None
possible_mail = None
skype2mail = None
pren = ""
name = ""
average_age = []
tree = Tree()
tree.create_node(f"{pren} {name}", 1)
data_export['Name'] = pren
data_export['LastName'] = name
# Daprofiler check les deces
if avis_deces_results is not None:
tree.create_node("Death Records",41518181871541514778,parent=1)
for i in avis_deces_results[:5]:
tree.create_node('{} | {}\t| {}'.format(i['Age'],i['Name'],i['Loc'][1:]),parent=41518181871541514778)
data_export['DeathRecords']['Exists'] = True
data_export['DeathRecords']['Records'] = avis_deces_results[:5]
try:
average_age.append(int(i['Age']))
except ValueError:
pass
# Daprofiler check les linkedin
if linkedin_results is not None:
tree.create_node('LinkedIN Profile',15418911611515145145,parent=1)
tree.create_node(linkedin_results,parent=15418911611515145145)
# Daprofiler check les pages blanches
if pagesblanche is not None:
personnal_life.append('.')
full_name = pagesblanche['Name']
adress = pagesblanche['Adress']
phone = pagesblanche['Phone']
data_export['AdressPhone']['Exists'] = True
data_export['AdressPhone']['FullName'] = full_name
data_export['AdressPhone']['Phone'] = phone
data_export['AdressPhone']['Adress'] = adress
tree.create_node("Adress - Phone",2,parent=1)
tree.create_node("Full Name : {}".format(full_name),22,parent=2)
tree.create_node("Adress : {}".format(adress),33,parent=2)
tree.create_node("Phone : {}".format(phone),44,parent=2)
if pagesblanche['carrier'] is not None:
tree.create_node('Carrier : {}'.format(pagesblanche['carrier']),894,parent=44)
if pagesblanche['Loc_phone'] is not None:
tree.create_node('Localisation : {}'.format(pagesblanche['Loc_phone']),55,parent=44)
data_export['AdressPhone']['PhoneLocation'] = pagesblanche['Loc_phone']
if pagesblanche['Type_tel'] is not None:
tree.create_node('Type : {}'.format(pagesblanche['Type_tel']),66,parent=44)
# Daprofiler check les copains davant
if copainsdavant_results is not None:
personnal_life.append('.')
data_export['CopainsDavant']['Exists'] = True
try:
tree.create_node("Copains d'avant",3,parent=1)
tree.create_node('Full Name : {}'.format(copainsdavant_results['full_name']),77,parent=3)
tree.create_node('Born Date : {}'.format(copainsdavant_results['born']),88,parent=3)
tree.create_node('Location : {}'.format(copainsdavant_results['localisation']),99,parent=3)
tree.create_node('Url : {}'.format(copainsdavant_results['url_full']),111,parent=3)
data_export['CopainsDavant']['FullName'] = copainsdavant_results['full_name']
data_export['CopainsDavant']['BornDate'] = copainsdavant_results['born']
data_export['CopainsDavant']['ProfileUrl'] = copainsdavant_results['url_full'].replace('https://','')
data_export['CopainsDavant']['Location'] = copainsdavant_results['localisation']
if copainsdavant_results['Other_locations'] is not None:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_sk = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Other Locations',number_sk,parent=3)
for i in copainsdavant_results['Other_locations']:
if i != copainsdavant_results['localisation']:
tree.create_node(i,parent=number_sk)
data_export['CopainsDavant']['OtherLocations'] = copainsdavant_results['Other_locations']
if copainsdavant_results['pdp'] != "None":
try:
tree.create_node('Profile Picture : {}'.format(copainsdavant_results['pdp']),151515454545,parent=3)
data_export['CopainsDavant']['ProfilePicUrl'] = copainsdavant_results['pdp'].replace('https://','')
except:
pass
if copainsdavant_results['Job'] != "None":
try:
tree.create_node('Job : {}'.format(copainsdavant_results['Job']),154156132489411,parent=3)
data_export['CopainsDavant']['Job'] = copainsdavant_results['Job']
except:
pass
if copainsdavant_results['familial_situation'] != "None":
try:
tree.create_node('Familial Situation : {}'.format(copainsdavant_results['familial_situation'].strip()),44984154114515,parent=3)
data_export['CopainsDavant']['FSituation'] = copainsdavant_results['familial_situation']
except:
pass
if copainsdavant_results['nb_enfants'] != "None":
try:
tree.create_node('Number of kids : {}'.format(copainsdavant_results['nb_enfants']),1654518948741,parent=3)
data_export['CopainsDavant']['NbKids'] = copainsdavant_results['nb_enfants']
except:
pass
except TypeError:
pass
# Daprofiler check BFMtv
if bfmtv_results is not None:
personnal_life.append('.')
data_export['Work']['Exists'] = True
data_export['Work']['FullName'] = bfmtv_results['full_name']
data_export['Work']['BornDate'] = bfmtv_results['naissance']
data_export['Work']['Company'] = bfmtv_results['company']
data_export['Work']['Function'] = bfmtv_results['fonction']
data_export['Work']['Warrant'] = bfmtv_results['mandats']
data_export['Work']['Link'] = bfmtv_results['link'].replace('https://','')
tree.create_node("Work - Job",4,parent=1)
tree.create_node('Adress : {}'.format(bfmtv_results['addr']),888,parent=4)
tree.create_node('Company : {}'.format(bfmtv_results['company']),777,parent=4)
tree.create_node('Link : {}'.format(bfmtv_results['link']),666,parent=4)
tree.create_node('Full Name : {}'.format(bfmtv_results['full_name']),222,parent=4)
tree.create_node('Born Date : {}'.format(bfmtv_results['naissance']),333,parent=4)
tree.create_node('Function : {}'.format(bfmtv_results['fonction']),444,parent=4)
tree.create_node('Warrant : {}'.format(bfmtv_results['mandats']),555,parent=4)
# Daprofiler check twitter
if twitter_results is not None:
social_medias.append('.')
data_export['Twitter']['Exists'] = True
data_export['Twitter']['Accounts'] = twitter_results
tree.create_node("Twitter",5,parent=1)
for i in twitter_results:
tree.create_node(i,parent=5)
# Daprofiler check skype
if skype_results is not None:
social_medias.append('.')
data_export['Skype']['Exists'] = True
data_export['Skype']['AccountList'] = skype_results
tree.create_node("Skype",6,parent=1)
tree.create_node("Accounts : {}".format(str(len(skype_results))),12,parent=6)
for i in skype_results:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_sk = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node(i,number_sk,parent=12)
# Daprofiler check instagram
if instagram_results is not None:
if len(instagram_results) == 0:
pass
else:
social_medias.append('.')
data_export['Instagram']['Exists'] = True
tree.create_node("Instagram",7,parent=1)
tree.create_node('Accounts : {}'.format(str(len(instagram_results))),13,parent=7)
acc_json_list = []
for i in instagram_results:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
username = i
number_ski = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
bio_infos = instagram_search.getInstagramEmailFromBio(username)
tree.create_node(i,number_ski,parent=13)
data = instagram_search.get_extra_data(username)
if data is not None:
if data['obfuscated_email'] is not None:
ob_mail = data['obfuscated_email']
tree.create_node("Obfuscated Email -> "+ob_mail,parent=number_ski)
else:
ob_mail = False
if data['obfuscated_phone'] is not None:
ob_phone = data['obfuscated_phone']
tree.create_node("Obfuscated Phone -> "+ob_phone,parent=number_ski)
else:
ob_phone = False
else:
ob_phone = False
ob_mail = False
acc_json_list.append({"Username":username,'obfuscated_phone':ob_phone,'obfuscated_email':ob_mail})
bio_emails = bio_infos['emails']
paypal_bio = bio_infos['paypal']
city_loc = bio_infos['city_list']
is_lgbt = bio_infos['lgbt_points']
schoolname = bio_infos['school']
bestfriend = bio_infos['best_friend']
love_date = bio_infos['love_date']
age_bio = bio_infos['age']
ethnicity = bio_infos['origins']
facebook_l = bio_infos['fb_list']
twitter_l = bio_infos['twitter_list']
hobbies = bio_infos['Hobbies']
love_situa = bio_infos['love_situation']
religions = bio_infos['religions']
astrologys = bio_infos['astrology']
if love_situa is not None:
nnumber_ski = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Love Situation',nnumber_ski,parent=number_ski)
for i in love_situa:
tree.create_node(i,parent=nnumber_ski)
if astrologys is not None:
nnumber_ski = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Astrologic sign',nnumber_ski,parent=number_ski)
for i in astrologys:
tree.create_node(i,parent=nnumber_ski)
if religions is not None:
nnumber_ski = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Religion(s)',nnumber_ski,parent=number_ski)
for i in religions:
tree.create_node(i,parent=nnumber_ski)
if hobbies is not None:
nnumber_ski = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Hobbies',nnumber_ski,parent=number_ski)
for i in hobbies:
tree.create_node(i,parent=nnumber_ski)
if bestfriend is not None:
nnumber_ski = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Good relationship with',nnumber_ski,parent=number_ski)
for i in bestfriend:
tree.create_node('{}'.format(i),parent=nnumber_ski)
if is_lgbt is not None:
lgbt_flag = (Fore.RED+"█"+Fore.YELLOW+"█"+Fore.GREEN+"█"+Fore.BLUE+"█"+Fore.MAGENTA+"█"+Fore.RESET)
tree.create_node('{} LGBT Member'.format(lgbt_flag),parent=number_ski)
if ethnicity is not None:
tree.create_node('Ethnicity : {}'.format(str(ethnicity).replace('[','').replace(']','').replace("'","")),parent=number_ski)
if facebook_l is not None:
tree.create_node('Facebook : {}'.format(str(facebook_l).replace('[','').replace(']','').replace("'","")),parent=number_ski)
if twitter_l is not None:
tree.create('Twitter : {}'.format(str(twitter_l).replace('[','').replace(']','').replace("'","")),parent=number_ski)
if schoolname is not None:
tree.create_node('School Name : {}'.format(schoolname),parent=number_ski)
if city_loc is not None:
tree.create_node('City : {}'.format(city_loc[0]),parent=number_ski)
if paypal_bio is not None:
for i in paypal_bio:
tree.create_node('Paypal in bio -> '+i,parent=number_ski)
if bio_emails is not None:
for i in bio_emails:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_skkk = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
number_skk = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Email from bio -> '+Fore.CYAN+i+Fore.RESET,number_skkk,parent=number_ski)
data_export['Instagram']['AccountList'] = acc_json_list
# Daprofiler check facebook
if facebook_results is not None:
social_medias.append('.')
data_export['Facebook']['Exists'] = True
nb = str(len(facebook_results))
tree.create_node("Facebook",9,parent=1)
tree.create_node('Accounts : {}'.format(nb),10,parent=9)
data_export['Facebook']['AccountList'] = facebook_results
for i in facebook_results:
tree.create_node(i,parent=10)
# Daprofiler generate Possible Email
if possible_mail is not None:
if len(possible_mail) != 0 or len(skype2mail) != 0 or pin2mail is not None:
tree.create_node('Emails extracted',146,parent=1)
if skype2mail is not None:
tree.create_node('[++] High probability',142,parent=146)
no_doubles = []
for i in skype2mail:
if i not in no_doubles:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
no_doubles.append(i)
tree.create_node(i,number,parent=142)
# GETTING LEAKED PASSWORDS FROM SCYLLA.SH -> \modules\scylla_sh.py
scylla_results = scylla_sh.scylla_search(email=i)
if scylla_results is not None:
tree.create_node('Leaked From : Scylla.sh',1518451,parent=number)
for i in scylla_results:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Leak Name : {}'.format(i['Name']),parent=1518451)
tree.create_node('Password : {}'.format(i['Password']),parent=1518451)
# GET LEAKED PASSWORDS FROM LEAKCHET.NET API -> \api_modules\leakcheck_net.py
a = leakcheck_net.leak_check_api(mail=i)
if a is not None:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_pass = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node("Leaked Creditentials",number_pass,parent=number)
for i in a:
password = i['password']
leak_name = i['leak_name']
leak_date = i['leak_date']
tree.create_node('Password : {}'.format(password),parent=number_pass)
tree.create_node('Leak Name : {}'.format(leak_name),parent=number_pass)
tree.create_node('Leak Date : {}'.format(leak_date),parent=number_pass)
data_export['Emails']['HighProbEmails'] = no_doubles
nb= str((len(possible_mail)))
if pin2mail is not None:
tree.create_node('[+++] Very high probability',45451451545545155154,parent=146)
for i in pin2mail:
tree.create_node('-> '+Fore.RED+i+Fore.RESET+" (Scraped from pinterest profile)",parent=45451451545545155154)
if int(nb) != 0:
tree.create_node("("+nb+") Possible Mailbox",8,parent=146)
data_export['Emails']['PermutatedMailbox'] = possible_mail
for i in possible_mail:
tree.create_node(i,parent=8)
#banner()
if sys.platform == "win32":
os.system('cls')
else:
os.system('clear')
tree.show()
# For data analyse
data_export['UI']['Pie']['PersonnalLife'] = len(personnal_life)
data_export['UI']['Pie']['SocialMedias'] = len(social_medias)
try:
data_export['UI']['Bar']['TwitterFounds'] = len(twitter_results)
except TypeError:
data_export['UI']['Bar']['TwitterFounds'] = 0
try:
data_export['UI']['Bar']['InstagramFounds'] = len(instagram_results)
except TypeError:
data_export['UI']['Bar']['InstagramFounds'] = 0
try:
data_export['UI']['Bar']['FacebookFounds'] = len(facebook_results)
except TypeError:
data_export['UI']['Bar']['FacebookFounds'] = 0
try:
data_export['UI']['Bar']['SkypeFounds'] = len(skype_results)
except TypeError:
data_export['UI']['Bar']['SkypeFounds'] = 0
data_file.close()
try:
with open(f'Reports/{folder_name}/{name}_{pren}.json','w',encoding='utf8') as f:
json.dump(data_export,f,indent=4,ensure_ascii=False)
f.close()
except FileNotFoundError:
os.mkdir('Reports')
with open(f'Reports/{folder_name}/{name}_{pren}.json','w',encoding='utf8') as f:
json.dump(data_export,f,indent=4,ensure_ascii=False)
f.close()
try:
if do_upgrade.lower() == "true":
update_funct()
except:
pass