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” />’
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file web_imagery-1.7.tar.gz.
File metadata
- Download URL: web_imagery-1.7.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be26d3c8dbaba4058b9486ec6f663f06165c6efcf529d17636c4be922cb830e6
|
|
| MD5 |
9d5519bc3d448f2484da91c8ce13f897
|
|
| BLAKE2b-256 |
a7f772ca7dd1ae4cc550102d6a12462c01b12b7bae34866d8355097684cdb368
|