Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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]
|
| 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)
|
|
|
|
| 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)
|