Part of otfbot.lib View Source
Function | get_page_with_header | Download a web page as a string. |
Function | get_headers | Undocumented |
Function | is_html | Undocumented |
Function | convert_bytes | copied from http://www.5dollarwhitebox.org/drupal/node/84 |
Function | download_if_html | download content, if the mimetype is text/html |
Function | download | Uses twisted.web.client.getPage() to fetch a Page via HTTP |
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.
Returns | A Defered which will call a Callback with the content as argument |