Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/clips/pattern
/ 12-dom.py
File
12-dom.py
examples/01-web/12-dom.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
os, sys; sys.path.insert(0, os.path.join(
".."
,
".."
))
2
3
from
pattern.web
import
URL, DOM, plaintext
4
from
pattern.web
import
NODE, TEXT, COMMENT, ELEMENT, DOCUMENT
Callers
nothing calls this directly
Calls
9
URL
Class · 0.90
plaintext
Function · 0.90
abs
Function · 0.90
get_elements_by_tagname
Method · 0.80
strip
Method · 0.80
insert
Method · 0.45
download
Method · 0.45
get
Method · 0.45
split
Method · 0.45
Tested by
no test coverage detected