binuser007 commited on
Commit
1d78cd2
·
verified ·
1 Parent(s): 7eb9fba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,14 +6,14 @@ import gradio as gr
6
  def run_katana(url, crawl_type):
7
  try:
8
  if crawl_type == "All URLs":
9
- command = ["katana", "-u", url, "-o"]
10
  else: # Subkeyword URLs
11
  command = [
12
  "katana",
13
  "-u", f"{url}",
14
  "-cs", f"^{url}.*",
15
  "-depth", "5",
16
- "-jc", "-o"
17
  ]
18
 
19
  result = subprocess.run(command, capture_output=True, text=True, check=True)
 
6
  def run_katana(url, crawl_type):
7
  try:
8
  if crawl_type == "All URLs":
9
+ command = ["katana", "-u", url]
10
  else: # Subkeyword URLs
11
  command = [
12
  "katana",
13
  "-u", f"{url}",
14
  "-cs", f"^{url}.*",
15
  "-depth", "5",
16
+ "-jc"
17
  ]
18
 
19
  result = subprocess.run(command, capture_output=True, text=True, check=True)