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.
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
make develop
make test
make init
make demo