Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/scrapy/scrapy
/ _is_valid_url
Function
_is_valid_url
scrapy/linkextractors/__init__.py:123–124 ·
view source on GitHub ↗
(url: str)
Source
from the content-addressed store, hash-verified
121
122
123
def
_is_valid_url(url: str) -> bool:
124
return
url.split(
"://"
, 1)[0] in {
"http"
,
"https"
,
"file"
,
"ftp"
}
125
126
127
# Top-level imports
Callers
1
_link_allowed
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected