output the file name if known_url and file flag are passed.

This commit is contained in:
Akash Mahanty 2022-01-18 20:14:44 +05:30
parent 7adc01bff2
commit 16b9bdd7f9

View File

@ -277,7 +277,16 @@ def main(
with open(file_path, "a") as f: with open(file_path, "a") as f:
f.write("{url}\n".format(url=url)) f.write("{url}\n".format(url=url))
print(url) click.echo(url)
if url_count > 0:
click.echo(
"\n\n'{file_name}' saved in current working directory".format(
file_name=file_name
)
)
else:
click.echo("No known URLs found. Please try a diffrent input!")
if known_urls: if known_urls:
wayback = Url(url, user_agent) wayback = Url(url, user_agent)