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 (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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
webcap-0.1.9-py3-none-any.whl
(32.7 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ae36a45cb0514d721bdb06201941aaf2d953d72d060b247e025d9f88e2a3afe
|
|
| MD5 |
eae82db62201f5530f42c35761503a51
|
|
| BLAKE2b-256 |
7698f3122ebfe646ad40915d3ce826274ef56109a55ae6f5fa11b7de54ba4c2f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
007a99527f2fa7334c87fe8c78508fd3842b0ba4a4f3c1abc455cad833b24e74
|
|
| MD5 |
b979e695305f7f21bc9feadb87f7092d
|
|
| BLAKE2b-256 |
0026b2bb57c584532248e6d693939e4ce19a735d603ae980736247bc169f47ec
|