Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/celery/celery
/ domain
Function
domain
examples/eventlet/webcrawler.py:41–43 ·
view source on GitHub ↗
Return the domain part of a URL.
(url)
Source
from the content-addressed store, hash-verified
39
40
41
def
domain(url):
42
""
"Return the domain part of a URL."
""
43
return
urlsplit(url)[1].split(
':'
)[0]
44
45
46
@shared_task(ignore_result=True, serializer=
'pickle'
, compression=
'zlib'
)
Callers
1
crawl
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected