Skip to main content

No project description provided

Project description

Python Version License Ruff Tests Codecov Discord

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:

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

Example Usage - CLI

webcap -u 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())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webcap-0.1.9.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webcap-0.1.9-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

Details for the file webcap-0.1.9.tar.gz.

File metadata

  • Download URL: webcap-0.1.9.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.21

File hashes

Hashes for webcap-0.1.9.tar.gz
Algorithm Hash digest
SHA256 3ae36a45cb0514d721bdb06201941aaf2d953d72d060b247e025d9f88e2a3afe
MD5 eae82db62201f5530f42c35761503a51
BLAKE2b-256 7698f3122ebfe646ad40915d3ce826274ef56109a55ae6f5fa11b7de54ba4c2f

See more details on using hashes here.

File details

Details for the file webcap-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: webcap-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.21

File hashes

Hashes for webcap-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 007a99527f2fa7334c87fe8c78508fd3842b0ba4a4f3c1abc455cad833b24e74
MD5 b979e695305f7f21bc9feadb87f7092d
BLAKE2b-256 0026b2bb57c584532248e6d693939e4ce19a735d603ae980736247bc169f47ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page