MCPcopy Index your code
hub / github.com/blacklanternsecurity/webcap

github.com/blacklanternsecurity/webcap @v0.1.20

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.20 ↗ · + Follow
52 symbols 195 edges 9 files 3 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

WebCap is an extremely lightweight web screenshot tool written in Python. It does not require selenium, playwright, or any other browser automation framework. It only needs a working Chrome installation.

Features:

  • [x] Blazing fast screenshots
  • [x] Full DOM extraction
  • [x] Status code
  • [x] Title
  • [x] JSON output
  • [x] Fuzzy hashing
  • [ ] Technology detection
  • [ ] Javascript extraction (environment dump)
  • [ ] OCR text extraction
  • [ ] Full network logs

Example Usage - CLI

webcap http://example.com

Example Usage - Python

import base64
from webcap import Browser

async def main():
    # create a browser instance
    browser = Browser()
    # start the browser
    await browser.start()
    # take a screenshot
    webscreenshot = await browser.screenshot("http://example.com")
    # save the screenshot to a file
    with open("screenshot.png", "wb") as f:
        f.write(webscreenshot.blob)
    # stop the browser
    await browser.stop()

if __name__ == "__main__":
    import asyncio
    asyncio.run(main())

Core symbols most depended-on inside this repo

request
called by 10
webcap/tab.py
str_or_file_list
called by 4
webcap/helpers.py
json
called by 3
webcap/webscreenshot.py
sanitize_filename
called by 3
webcap/helpers.py
_main
called by 2
webcap/cli.py
close
called by 2
webcap/tab.py
task_pool
called by 2
webcap/helpers.py
new_task
called by 2
webcap/helpers.py

Shape

Method 33
Function 13
Class 6

Languages

Python100%

Modules by API surface

webcap/browser.py15 symbols
webcap/tab.py11 symbols
webcap/webscreenshot.py9 symbols
webcap/test/test_webcap.py6 symbols
webcap/helpers.py4 symbols
webcap/cli.py3 symbols
webcap/errors.py2 symbols
webcap/base.py2 symbols

For agents

$ claude mcp add webcap \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact