Skip to main content

DM me on github, or @barce on twitter, if you want to see a working demo.

installation

pip install django-screenshots pip install requests

set values for using environment variables:

export SCREENSHOT_USER=’’ export SCREENSHOT_PASSWORD=’’ export SCREENSHOT_SERVER_URL=’’ export SCREENSHOT_FORCE_ENV=’1’

set values for using django settings:

SCREENSHOT_USER=’’ SCREENSHOT_PASSWORD=’’ SCREENSHOT_SERVER_URL=’’

Capture a screen shot and get the URL:

from django_screenshots import Builder b = Builder(’http://www.google.com/’) b.capture() print(b.image_url)

Get info about a screen shot:

from django_screenshots import Builder b = Builder(’http://www.google.com/’) print(b.info())

Search for a URL:

from django_dscreenshots import Builder b = Builder(’http://www.google.com/’) print(b.search())

IPFS local use:

from django_screenshots import ScreenShotIpfs import ipfshttpclient b = ScreenShotIpfs(’https://www.reddit.com/’) b.image_directory = ‘./tests’ b.capture() b.upload() b.get(b.ipfs_hash, ‘./tests/output.png’)

For developers:

How to upload to pypi:

python setup.py sdist register upload # python setup.py sdist # twine upload dist/*

Download files

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

Source Distribution

django-screenshots-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file django-screenshots-0.2.0.tar.gz.

File metadata

  • Download URL: django-screenshots-0.2.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for django-screenshots-0.2.0.tar.gz
Algorithm Hash digest
SHA256 66046edce6acf24d28d248a66f7923d7543e09ecd31284dd7781c6cad8ee132e
MD5 c2e4ed277eafd6e19606aac2e754861b
BLAKE2b-256 425e5f988c17efb326fa15aff767e37baf677c8b509003510ae4a340b9bbea4b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page