Module t.w.client

Part of twisted.web View Source

HTTP client.

API Stability: stable
Class PartialDownloadError Page was only partially downloaded, we got disconnected in middle.
Class HTTPPageGetter No class docstring; 2/11 methods documented
Class HTTPPageDownloader Undocumented
Class HTTPClientFactory Download a given URL.
Class HTTPDownloader Download to a file.
Function _parse Undocumented
Function getPage Download a web page as a string.
Function downloadPage Download a web page to a file.
def _parse(url, defaultPort=None): (source)
Undocumented
def getPage(url, *args, contextFactory=None, **kwargs): (source)

Download a web page as a string.

Download a page. Return a deferred, which will callback with a page (as a string) or errback with a description of the error.

See HTTPClientFactory to see what extra args can be passed.
def downloadPage(url, file, *args, contextFactory=None, **kwargs): (source)
Download a web page to a file.
Parametersfile

path to file on filesystem, or file-like object.

See HTTPDownloader to see what extra args can be passed.
API Documentation for twisted, generated by pydoctor.