Skip to main content

DOM Inspector AI

This package extracts all id and class attributes from a web page, along with their DOM paths and a base64 screenshot.

Installation

pip install git+https://github.com/yut0takagi/dom-inspector-ai.git

CLI Usage

python cli.py https://example.com > output.json

Python Usage

from dom_inspector_ai.analyzer import analyze_url

result = analyze_url("https://example.com")
print(result["ids"])

Output

  • ids: Dictionary of id attributes with tag, hierarchy, and CSS selector path
  • classes: Dictionary of class attributes with count and example paths
  • screenshot_base64: PNG screenshot of the page in base64

Release files for dom-inspector-ai 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dom-inspector-ai 0.1.1
File Size Uploaded
dom_inspector_ai-0.1.1.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dom-inspector-ai 0.1.1
File Interpreter ABI Platform
dom_inspector_ai-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / dom_inspector_ai-0.1.1.tar.gz

Download URL dom_inspector_ai-0.1.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
16ab22f343a038da965b3fc2683cb220c2b903a1012adfd632716b9c8b95dea2
BLAKE2b-256 checksum
How to use checksums
262d427b98472d570a496f5522247f75b774528f3a849109b54efe60a787d39d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release files / dom_inspector_ai-0.1.1-py3-none-any.whl

Download URL dom_inspector_ai-0.1.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3939e08e1ee0f2fa8bc0a77c69f1cef7dbf74012f33a2c035a78f3dcba9e18d0
BLAKE2b-256 checksum
How to use checksums
f26b4f0ce867554e611bd949f7ce99c4c57b0df37b30658cdc2ecbe146d85b02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page