Skip to main content

Use Thumbalizr in your Django templates

Project description

Thumbalizr_tags version 1.0

Thumbalizr (https://thumbalizr.com/) is a web service to easily embed live screenshots of any URL in your website. Thumbalizr has full support for Flash, JavaScript, CSS, & HTML5.

You can install the library from PyPI: https://pypi.org/project/Thumablizr-tags

The source code can be found on github at https://github.com/juliensobrier/thumbalizr_django

This module add custom tags to Django to embed your Thumbalizr screenshots.

INSTALLATION

python setup.py install

DEPENDENCIES

The following python packages are required to run thumbalizr

thumbalizr

DJANGO

After installing Thumbalizr_tags, update your Django configurations:

settings.py:

INSTALLED_APPS = [
	...
	'thumbalizr_django'
]


# Thumbalizr settings
THUMBALIZR_SETTINGS = {
	'API_KEY': 'MY_KEY',
	'SECRET': 'MY_SECRET',
	'WIDTH': '',
}

Change MY_KEY to your Embed API key, and MY_SECRET with your Thumbalizr secret. You can add default values for the API call: WIDTH, BWIDTH, BHEIGHT, etc. If not set, Thumbalizr will use the default values for your profile.

Then, in your templates, use the thumbalizr tag to generate the image URL. For example, to take a screenshot of https://www.thumbalizr.com/ with a thumbnail width of 800 pixels:

{% load thumbalizr_tags %}
<img src="{{ 'https://www.thumbalizr.com/'|thumbalizr:800 }}"/>

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

Thumablizr_tags-1.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

Thumablizr_tags-1.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file Thumablizr_tags-1.0.1.tar.gz.

File metadata

  • Download URL: Thumablizr_tags-1.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8

File hashes

Hashes for Thumablizr_tags-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5c04aae3ed04d5f13065e45879ff4dcd51f0c4aa79c894894cdc7a328e32b694
MD5 d9eb16eb113c9d6588b0c87e1e85d323
BLAKE2b-256 8802ea881e2e01b2e29c8803607993e1ff1e5bf271178af990112f6aab0fd494

See more details on using hashes here.

File details

Details for the file Thumablizr_tags-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: Thumablizr_tags-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8

File hashes

Hashes for Thumablizr_tags-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ccab798cbe2676f89f049a3c00d9d24365fc5e92dd4266e09921c41aceec9f31
MD5 882d24d6a8937c5cf5d59bcaec9ec850
BLAKE2b-256 23cded8839ba097fac04049f29cd61cf813064eab772ffc4ef02a158c7a96770

See more details on using hashes here.

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