Spaces:
Sleeping
Sleeping
SauravMaheshkar
commited on
Commit
β’
1f8c8f2
1
Parent(s):
96b4a54
feat: init
Browse files- README.md +6 -7
- app.py +29 -0
- requirements.txt +1 -0
README.md
CHANGED
@@ -1,13 +1,12 @@
|
|
1 |
---
|
2 |
-
title: Sherlock
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.42.0
|
8 |
app_file: app.py
|
9 |
-
pinned:
|
10 |
license: mit
|
11 |
---
|
12 |
|
13 |
-
|
|
|
1 |
---
|
2 |
+
title: Sherlock Project
|
3 |
+
emoji: π
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: blue
|
6 |
sdk: gradio
|
|
|
7 |
app_file: app.py
|
8 |
+
pinned: true
|
9 |
license: mit
|
10 |
---
|
11 |
|
12 |
+
Simple Web UI for the [Sherlock Project](sherlockproject.xyz/)
|
app.py
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import subprocess
|
3 |
+
|
4 |
+
|
5 |
+
def search(name):
|
6 |
+
return subprocess.run(
|
7 |
+
f"sherlock --print-found {name}", shell=True, capture_output=True, text=True
|
8 |
+
).stdout
|
9 |
+
|
10 |
+
|
11 |
+
with gr.Blocks() as demo:
|
12 |
+
gr.HTML(
|
13 |
+
"""
|
14 |
+
<p align=center>
|
15 |
+
<br>
|
16 |
+
<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>
|
17 |
+
<br>
|
18 |
+
<span>Hunt down social media accounts by username across <a href="https://sherlockproject.xyz/sites">400+ social networks</a></span>
|
19 |
+
<br>
|
20 |
+
</p>
|
21 |
+
"""
|
22 |
+
)
|
23 |
+
inp = gr.Textbox(placeholder="Search for a username?")
|
24 |
+
out = gr.Textbox()
|
25 |
+
btn = gr.Button("Search")
|
26 |
+
btn.click(fn=search, inputs=inp, outputs=out)
|
27 |
+
|
28 |
+
if __name__ == "__main__":
|
29 |
+
demo.launch()
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
sherlock-project
|