Package cssutils :: Package scripts :: Module csscapture |
[hide private]
[frames] | no frames]

# Module csscapture

source code

Retrieve all CSS stylesheets including embedded for a given URL. Retrieve as StyleSheetList or save to disk - raw, parsed or minified version.

TODO: - maybe use DOM 3 load/save? - logger class which handles all cases when no log is given... - saveto: why does urllib2 hang?

Version: $Id: csscapture.py 1257 2008-05-26 20:17:44Z cthedot $

Classes | [hide private]
| CSSCaptureHTMLParser parses given data for link and style elements
| CSSCapture Retrieve all CSS stylesheets including embedded for a given URL.

Functions | [hide private]
main(args=None) | source code

Imports: codecs, errno, HTMLParser, logging, os, sys, urllib2, urlparse, cssutils, encutils