An open API service indexing awesome lists of open source software.

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

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