Skip to content

Latest commit

 

History

History
executable file
·
43 lines (30 loc) · 929 Bytes

README.md

File metadata and controls

executable file
·
43 lines (30 loc) · 929 Bytes

adom

A domonic-like wrapper around selectolax

from dom import *
print(html(body(h1('Hello, World!'))))
# <html><body><h1>Hello, World!</h1></body></html>
from window import *
window.location = "https://www.google.com"
print( window.document.css('a') )
# [<Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>, <Node a>]

install

python3 -m pip install adom

CLI

To see the version:

adom -v

To use css selectors on a website...

adom -q https://google.com a

Discord

There's a discord for domonic to talk about python/doms etc. It can be used for this as well. I check there 2 or 3 times a week or post updates there.

https://discord.gg/a9pSZv4V5f