Skip to main content

Grab images from the web by their urls

Currently supports:

  • direct image links that have the following extensions (jpg, jpeg, gif, png)

  • Instagram

  • Imgur

  • Flickr

  • Path

  • Skitch

  • Minus

  • Cloud App

Requirements

>> pip install -r requirements.txt

Usage

>> from webimagery import *

>> image = WebImagery()

First set the url

>> image.set_image(’http://www.flickr.com/photos/ednapiranha/4437021184/’) >> True

You can get the source link

>> image.get_image() >> ‘http://farm3.static.flickr.com/2788/4437021184_848d7fa79d.jpg’

Or you can get the image tag, setting your own alt text and dimensions

>> image.get_image_as_html(‘cat sleeping’) >> image.width = 350 >> ‘<img src=”http://farm3.static.flickr.com/2788/4437021184_848d7fa79d.jpg” alt=”cat sleeping” width=”350” height=”200” />’

Metadata

Release files for web_imagery 1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for web_imagery 1.7
File Size Uploaded Provenance Actions
web_imagery-1.7.tar.gz 2.9 kB Without provenance Details for web_imagery-1.7.tar.gz

Release files / web_imagery-1.7.tar.gz

Download URL web_imagery-1.7.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
be26d3c8dbaba4058b9486ec6f663f06165c6efcf529d17636c4be922cb830e6
BLAKE2b-256 checksum
How to use checksums
a7f772ca7dd1ae4cc550102d6a12462c01b12b7bae34866d8355097684cdb368
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for web_imagery 1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.7 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page