django-page-exporter

Django Page Exporter


Keywords
django, export, phantomjs, python, python3
License
MIT
Install
pip install django-page-exporter==0.6.3

Documentation

Django Page Exporter

Simple Django application to export web pages in different formats (png, jpeg, pdf...)

See https://django-page-exporter.readthedocs.org/en/latest/ for detailed documentation on the project.

Build Status codecov

How to use

Install django-page-exporter:

pip install django-page-exporter

Include page_exporter in your SETTINGS as follow:

INSTALLED_APPS = (
    ...
    'page_exporter',
    ...
)

url.py should contain:

urlpatterns = patterns(
    ...
    (r'^capture/', include('page_exporter.urls')),
    ...
)

Following SETTINGS are available:

PAGE_EXPORTER_CAPTURE_SCRIPT = './capture.js'
PAGE_EXPORTER_PHANTOMJS_CMD = '~/bin/phantomjs'
PAGE_EXPORTER_WAIT = '2000'
PAGE_EXPORTER_TIMEOUT_SECONDS = 60

See docs for further information

Start coding

make develop

Tests

make test

Running Local

make init
make demo