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

Function download

pattern/web/__init__.py:521–525  ·  view source on GitHub ↗

Downloads the content at the given URL (by default it will be cached locally). Unless unicode=False, the content is returned as a unicode string.

(url=u"", method=GET, query={}, timeout=10, cached=True, throttle=0, proxy=None, user_agent=USER_AGENT, referrer=REFERRER, authentication=None, unicode=False)

Source from the content-addressed store, hash-verified

519 return URL(self.string, self.method, self.query)
520
521def download(url=u"", method=GET, query={}, timeout=10, cached=True, throttle=0, proxy=None, user_agent=USER_AGENT, referrer=REFERRER, authentication=None, unicode=False):
522 """ Downloads the content at the given URL (by default it will be cached locally).
523 Unless unicode=False, the content is returned as a unicode string.
524 """
525 return URL(url, method, query).download(timeout, cached, throttle, proxy, user_agent, referrer, authentication, unicode)
526
527#url = URL("http://user:pass@example.com:992/animal/bird?species#wings")
528#print url.parts

Callers

nothing calls this directly

Calls 2

URLClass · 0.85
downloadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…