Skip to main content

No project description provided

Project description

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

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.2.tar.gz (10.8 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.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: webcap-0.1.2.tar.gz
  • Upload date:
  • Size: 10.8 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.2.tar.gz
Algorithm Hash digest
SHA256 141c491f08142c43ea0e881346a9c8e95815dcde21dd48a4c26b2c044af71fe2
MD5 70a7cc1a4533be50aa842ceff616d1ed
BLAKE2b-256 f8e810fb927d6b879fab05268d7be8df3912f24943bfd15711dc5b07b5aa19df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: webcap-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cec5f5a589b57354c19835066e0ee2a8aaa3e6e9d361ab4a290b2ab4e3e17845
MD5 baaca42d657e998e98cfe9c042a281d3
BLAKE2b-256 f44e098e2077f493be56fbf177e3dbf38f469ab41aee37a29a1edd904d6a6d67

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