Skip to content

GigiusB/django-page-exporter

 
 

Repository files navigation

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

About

Simple Django application to export web pages

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 72.3%
  • Python 20.8%
  • JavaScript 3.8%
  • Makefile 3.1%