MCPcopy Create free account
hub / github.com/apify/crawlee-python / Glob

Class Glob

src/crawlee/_utils/globs.py:11–16  ·  view source on GitHub ↗

Wraps a glob pattern (supports the `*`, `**`, `?` wildcards).

Source from the content-addressed store, hash-verified

9
10
11class Glob:
12 """Wraps a glob pattern (supports the `*`, `**`, `?` wildcards)."""
13
14 def __init__(self, glob: str) -> None:
15 self.glob = glob
16 self.regexp = re.compile(_translate(self.glob, recursive=True))
17
18
19def _translate(

Callers 15

test_asteriskFunction · 0.90
test_double_asteritskFunction · 0.90
request_handlerFunction · 0.90
request_handlerFunction · 0.90
request_handlerFunction · 0.90
request_handlerFunction · 0.90
request_handlerFunction · 0.90
request_handlerFunction · 0.90
request_handlerFunction · 0.90
request_handlerFunction · 0.90
handlerFunction · 0.90
request_handlerFunction · 0.90

Calls

no outgoing calls

Tested by 5

test_asteriskFunction · 0.72
test_double_asteritskFunction · 0.72
request_handlerFunction · 0.72
request_handlerFunction · 0.72
request_handlerFunction · 0.72