Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
119
def
_matches(url: str, regexs: Iterable[Pattern[str]]) -> bool:
120
return
any(r.search(url)
for
r in regexs)
121
122
123
def
_is_valid_url(url: str) -> bool:
Callers
1
_link_allowed
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected