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)
| 519 | return URL(self.string, self.method, self.query) |
| 520 | |
| 521 | def 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 |