Spaces:
Sleeping
Sleeping
import gradio as gr | |
import subprocess | |
def run_katana(url): | |
output_file = "urls.txt" | |
command = f"katana -u {url} > {output_file}" | |
subprocess.run(command, shell=True, check=True) | |
return output_file | |
# Gradio interface | |
interface = gr.Interface( | |
fn=run_katana, | |
inputs="text", | |
outputs="file", | |
title="Katana URL Crawler", | |
description="Enter a URL to crawl with Katana." | |
) | |
interface.launch(server_name="0.0.0.0", server_port=7860) | |