SauravMaheshkar commited on
Commit
1f8c8f2
β€’
1 Parent(s): 96b4a54

feat: init

Browse files
Files changed (3) hide show
  1. README.md +6 -7
  2. app.py +29 -0
  3. requirements.txt +1 -0
README.md CHANGED
@@ -1,13 +1,12 @@
1
  ---
2
- title: Sherlock
3
- emoji: πŸ”₯
4
- colorFrom: purple
5
- colorTo: pink
6
  sdk: gradio
7
- sdk_version: 4.42.0
8
  app_file: app.py
9
- pinned: false
10
  license: mit
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
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