From 780395c030ceaace8ea6ba679811530e737985bb Mon Sep 17 00:00:00 2001 From: aristotelis gkithkopoulos Date: Wed, 23 Mar 2022 22:40:00 +0200 Subject: [PATCH] Small output changes --- sherlock/__init__.py | 3 ++- sherlock/notify.py | 27 +++++++++++++++++++++++++++ sherlock/sites.py | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/sherlock/__init__.py b/sherlock/__init__.py index b0894c8b..219dcaec 100644 --- a/sherlock/__init__.py +++ b/sherlock/__init__.py @@ -1,5 +1,6 @@ -"""Sherlock Module +""" Sherlock Module This module contains the main logic to search for usernames at social networks. + """ diff --git a/sherlock/notify.py b/sherlock/notify.py index 90ed6811..e684ec72 100644 --- a/sherlock/notify.py +++ b/sherlock/notify.py @@ -155,6 +155,33 @@ class QueryNotifyPrint(QueryNotify): Fore.GREEN + f"] {title}" + Fore.WHITE + f" {message}" + Fore.GREEN + " on:") + # An empty line between first line and the result(more clear output) + print('\r') + + return + + def finish(self, message="Results have been uploaded"): + """Notify Start. + + Will print the last line to the standard output. + + Keyword Arguments: + self -- This object. + message -- The last phrase. + + Return Value: + Nothing. + """ + + title = "Finish" + print('\r') # An empty line between last line of main output and last line(more clear output) + print(Style.BRIGHT + Fore.GREEN + "[" + + Fore.YELLOW + "!" + + Fore.GREEN + f"] {title}" + + Fore.GREEN + ": " + + Fore.WHITE + f" {message}" ) + + # An empty line between first line and the result(more clear output) return diff --git a/sherlock/sites.py b/sherlock/sites.py index de8eeece..75089d4e 100644 --- a/sherlock/sites.py +++ b/sherlock/sites.py @@ -68,7 +68,7 @@ class SiteInformation(): Return Value: Nicely formatted string to get information about this object. """ - + return f"{self.name} ({self.url_home})"