Skip to content

Commit 1e8e85e

Browse files
authored
CheckForInput
1 parent 243581f commit 1e8e85e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

torcrawl.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ def main():
175175
website = ''
176176
out_path = ''
177177

178-
if len(args.url) > 0:
178+
if args.input: pass
179+
elif len(args.url) > 0:
179180
website = url_canon(args.url, args.verbose)
180181
if args.folder is not None:
181182
out_path = folder(args.folder, args.verbose)
@@ -196,7 +197,7 @@ def main():
196197

197198
if args.verbose:
198199
check_ip()
199-
print(('## URL: ' + args.url))
200+
if args.url: print(('## URL: ' + args.url))
200201

201202
if args.crawl:
202203
crawler = Crawler(website, c_depth, c_pause, out_path, args.log,

0 commit comments

Comments
 (0)