MCPcopy Index your code
hub / github.com/clips/pattern / base

Function base

pattern/web/__init__.py:3083–3087  ·  view source on GitHub ↗

Returns the URL domain name: http://en.wikipedia.org/wiki/Web_crawler => en.wikipedia.org

(url)

Source from the content-addressed store, hash-verified

3081 self._data.append(link)
3082
3083def base(url):
3084 """ Returns the URL domain name:
3085 http://en.wikipedia.org/wiki/Web_crawler => en.wikipedia.org
3086 """
3087 return urlparse.urlparse(url).netloc
3088
3089def abs(url, base=None):
3090 """ Returns the absolute URL:

Callers 3

popMethod · 0.70
crawlMethod · 0.70
priorityMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…