Example #1
0
					print(helpMsg)
				elif choix.lower() == 'b':
					clear()
					menu()
					print(mainOption)
					break
				elif choix.lower() == 'c':
					clear()
					menu()
					print(profilerOption)
				elif choix.lower() == 'e':
					sys.exit("\n"+information+" Bye Thanks for using! :)")
				elif choix.lower() == "1":
					profile = input(" Profile: ")
					data = pr.searchDatabase(profile, database=database)
					profilerFunc(data, path=pathDatabase)
					
				elif choix.lower() == "2":
					pr.showAllProfiles(database=database)

				elif choix.lower() == '3':
					print("\n"+Fore.YELLOW+"(Format: First name Last name)"+Fore.RESET)
					name = input(" Profile Name: ")
					name = name.split(" ")
					name = [i.capitalize() for i in name]
					name = " ".join(name)
					twitter = input(" Twitter: ")
					# print(found+" %s" % (twitter))
					instagram = input(" Instagram: ")
					# print(found+" %s" % (instagram))
					facebook = input(" Facebook: ")
Example #2
0
                    print(mainOption)
                    break
                elif choix.lower() == 'c':
                    clear()
                    menu()
                    print(profilerOption)
                elif choix.lower() == 'e' or choix.lower() == 'exit':
                    sys.exit("\n" + information + " Bye ! :)")
                elif choix.lower() == "1":
                    if pr.count >= 1:
                        while True:
                            profile = input(" Profil: ")
                            if profile != '':
                                break
                        data = pr.searchDatabase(profile, database=database)
                        profilerFunc(data, path=settings.pathDatabase)
                    else:
                        print(warning +
                              " Aucun profil trouvé. Veuillez en créer un.")
                elif choix.lower() == "2":
                    pr.showAllProfiles(database=database)

                elif choix.lower() == '3':
                    print("\n" + Fore.YELLOW + "(Format: Prenom Nom)" +
                          Fore.RESET)
                    while True:
                        name = input(" Nom du Profil: ")
                        if name != '':
                            break
                    name = name.split(" ")
                    name = [i.capitalize() for i in name]