Skip to main content

A website screenshot and thumbnailing app for Django.

Project description

A website snapshot and thumbnailing app for Django. Uses firefox, selenium, and sorl-thumbnail.

Getting started

Requirements

django-thummer requires Firefox and Xvfb. On Debian/Ubuntu systems these can be installed using:

sudo apt-get install firefox xvfb

Installation

django-thummer can be installed to your Python environment using pip:

pip install django-thummer

Then add thummer to INSTALLED_APPS in your Django settings file, and sync the database. If you’re using South, then migrations are provided.

Basic usage

from thummer.utils import get_thumbnail

thumbnail = get_thumbnail('http://www.example.com/', '400x400')

Credits

Special thanks to the sorl-thumbnail and selenium projects. Thanks also to the blog posts which originally got me thinking about the project:

To-do

  • Snapshot error handling

  • Documentation

  • Template tag

  • Celery tasks

  • Placeholder image

  • Management commands

  • Tests

  • Logging

  • Cache redirect response?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-thummer-2.0.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page