https://github.com/byteface/adom
A domonic-like wrapper around selectolax
https://github.com/byteface/adom
Last synced: 11 months ago
JSON representation
A domonic-like wrapper around selectolax
- Host: GitHub
- URL: https://github.com/byteface/adom
- Owner: byteface
- License: mit
- Created: 2022-02-05T13:58:30.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-06T17:33:43.000Z (about 4 years ago)
- Last Synced: 2025-05-12T04:52:28.803Z (11 months ago)
- Language: Python
- Size: 51.8 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# adom
A [domonic-like](https://github.com/byteface/domonic) wrapper around [selectolax](https://github.com/rushter/selectolax)
```python
from dom import *
print(html(body(h1('Hello, World!'))))
#
Hello, World!
```
```python
from window import *
window.location = "https://www.google.com"
print( window.document.css('a') )
# [, , , , , , , , , , , , , , , , , ]
```
### install
```bash
python3 -m pip install adom
```
### CLI
To see the version:
```bash
adom -v
```
To use css selectors on a website...
```bash
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