MCPcopy
hub / github.com/scrapy/scrapy / _matches

Function _matches

scrapy/linkextractors/__init__.py:119–120  ·  view source on GitHub ↗
(url: str, regexs: Iterable[Pattern[str]])

Source from the content-addressed store, hash-verified

117
118
119def _matches(url: str, regexs: Iterable[Pattern[str]]) -> bool:
120 return any(r.search(url) for r in regexs)
121
122
123def _is_valid_url(url: str) -> bool:

Callers 1

_link_allowedMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected