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 }}"/>
Metadata
Release files for Thumablizr-tags 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Thumablizr_tags-1.0.1.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Thumablizr_tags-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB