mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-25 05:10:19 +00:00
You can now disable creation of a txt file
This commit is contained in:
parent
573ae6c488
commit
2cc854bd6b
1 changed files with 17 additions and 8 deletions
|
@ -716,6 +716,14 @@ def main():
|
||||||
help="Include checking of NSFW sites from default list.",
|
help="Include checking of NSFW sites from default list.",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
parser.add_argument(
|
||||||
|
"--no-txt",
|
||||||
|
action="store_true",
|
||||||
|
dest="no_txt",
|
||||||
|
default=False,
|
||||||
|
help="Disable creation of a txt file",
|
||||||
|
)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# If the user presses CTRL-C, exit gracefully without throwing errors
|
# If the user presses CTRL-C, exit gracefully without throwing errors
|
||||||
|
@ -847,6 +855,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
result_file = f"{username}.txt"
|
result_file = f"{username}.txt"
|
||||||
|
|
||||||
|
if not args.no_txt:
|
||||||
with open(result_file, "w", encoding="utf-8") as file:
|
with open(result_file, "w", encoding="utf-8") as file:
|
||||||
exists_counter = 0
|
exists_counter = 0
|
||||||
for website_name in results:
|
for website_name in results:
|
||||||
|
|
Loading…
Reference in a new issue