Spaces:
Sleeping
Sleeping
File size: 851 Bytes
1f8c8f2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import gradio as gr
import subprocess
def search(name):
return subprocess.run(
f"sherlock --print-found {name}", shell=True, capture_output=True, text=True
).stdout
with gr.Blocks() as demo:
gr.HTML(
"""
<p align=center>
<br>
<a href="https://sherlock-project.github.io/" target="_blank"><img src="https://github.com/sherlock-project/sherlock/blob/master/docs/images/sherlock-logo.png?raw=true"/></a>
<br>
<span>Hunt down social media accounts by username across <a href="https://sherlockproject.xyz/sites">400+ social networks</a></span>
<br>
</p>
"""
)
inp = gr.Textbox(placeholder="Search for a username?")
out = gr.Textbox()
btn = gr.Button("Search")
btn.click(fn=search, inputs=inp, outputs=out)
if __name__ == "__main__":
demo.launch()
|