page_exporter package
Submodules
page_exporter.config module
-
class
page_exporter.config.
Settings
(prefix)[source]
Bases: object
page_exporter.urls module
page_exporter.utils module
-
exception
page_exporter.utils.
CaptureError
[source]
Bases: exceptions.Exception
-
exception
page_exporter.utils.
UnsupportedImageFormat
[source]
Bases: exceptions.Exception
-
page_exporter.utils.
image_mimetype
(render)[source]
-
page_exporter.utils.
image_postprocess
(imagefile, output, size, crop, render)[source]
Resize and crop captured image, and saves to output.
(can be stream or filename)
-
page_exporter.utils.
page_capture
(stream, url, method=None, width=None, height=None, selector=None, data=None, waitfor=None, size=None, crop=None, render='png', wait=None, cookie_name=None, cookie_value=None, cookie_domain=None, page_status=None)[source]
Captures web pages using phantomjs
-
page_exporter.utils.
parse_render
(render)[source]
-
page_exporter.utils.
parse_size
(size_raw)[source]
-
page_exporter.utils.
parse_url
(request, url)[source]
Parse url URL parameter.
-
page_exporter.utils.
phantomjs_command
()[source]
-
page_exporter.utils.
phantomjs_command_kwargs
()[source]
will construct kwargs for cmd
-
page_exporter.utils.
process_phantomjs_stdout
(stdout)[source]
Parse and digest capture script output.
page_exporter.views module
-
page_exporter.views.
capture
(request)[source]
Module contents
-
page_exporter.
get_git_changeset
()[source]
Returns a numeric identifier of the latest git changeset.
The result is the UTC timestamp of the changeset in YYYYMMDDHHMMSS format.
This value isn’t guaranteed to be unique, but collisions are very unlikely,
so it’s sufficient for generating the development version numbers.
-
page_exporter.
get_version
()[source]
Derives a PEP386-compliant version number from VERSION.