We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c3df939 + c465b0e commit be355beCopy full SHA for be355be
torcrawl.py
@@ -183,7 +183,7 @@ def main():
183
out_path = folder(extract_domain(website), args.verbose)
184
185
# Parse arguments to variables else initiate variables.
186
- input_file = args.input if args.input else (out_path + '/' + now + '_links.txt')
+ input_file = args.input if args.input else ''
187
output_file = args.output if args.output else ''
188
c_depth = args.cdepth if args.cdepth else 0
189
c_pause = args.cpause if args.cpause else 1
@@ -203,6 +203,9 @@ def main():
203
args.verbose)
204
lst = crawler.crawl()
205
206
+ if args.input == None:
207
+ input_file = out_path + '/' + now + '_links.txt'
208
+
209
with open(input_file, 'w+', encoding='UTF-8') as file:
210
for item in lst:
211
file.write(f"{item}\n")
0 commit comments