Skip to content

Add Flask Web UI (#321)#2888

Open
anuragg-saxenaa wants to merge 2 commits intosherlock-project:masterfrom
anuragg-saxenaa:feat/web-ui
Open

Add Flask Web UI (#321)#2888
anuragg-saxenaa wants to merge 2 commits intosherlock-project:masterfrom
anuragg-saxenaa:feat/web-ui

Conversation

@anuragg-saxenaa
Copy link
Copy Markdown

Summary

Implements a lightweight Flask web UI for Sherlock to address issue #321 "Create simple web UI".

Changes

  • sherlock_project/web_ui.py: New Flask application with:
    • renders the search template
    • accepts and returns JSON results
    • adapter bridges the existing interface to collect results
    • Search runs in a background thread to avoid blocking the request
    • Supports and CLI arguments

Usage

python -m sherlock_project.web_ui --host 127.0.0.1 --port 5000

Then open http://127.0.0.1:5000 in your browser.

Testing

  • Manually verified: server starts, search returns results
  • Template at (already existed in the repo) is used for the UI

Closes #321

- sherlock_project/web_ui.py: Flask app with / and /api/search
- WebNotify adapter collects results via QueryNotify interface
- Search runs in background thread to avoid blocking the request
- Includes argparse for --host/--port configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant