File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ def main():
183
183
out_path = folder (extract_domain (website ), args .verbose )
184
184
185
185
# Parse arguments to variables else initiate variables.
186
- input_file = args .input if args .input else ( out_path + '/' + now + '_links.txt' )
186
+ input_file = args .input if args .input else ''
187
187
output_file = args .output if args .output else ''
188
188
c_depth = args .cdepth if args .cdepth else 0
189
189
c_pause = args .cpause if args .cpause else 1
@@ -203,6 +203,9 @@ def main():
203
203
args .verbose )
204
204
lst = crawler .crawl ()
205
205
206
+ if args .input == None :
207
+ input_file = out_path + '/' + now + '_links.txt'
208
+
206
209
with open (input_file , 'w+' , encoding = 'UTF-8' ) as file :
207
210
for item in lst :
208
211
file .write (f"{ item } \n " )
You can’t perform that action at this time.
0 commit comments