unsplash-search
Unsplash-search is small python library to search for photos from the Unsplash photograph hosting website.
Install
pip install unsplash-search
Usage
Import the UnsplashSearch module
from unsplash_search import UnsplashSearch
You must get an access key from the Unsplash Deverloper API website.
You must then instantiate the UnsplashSearch Class with your key to use the program.
unsplash = UnsplashSearch(YOUR_KEY)
Search using queries
The unsplash search method takes in a query as an argument for what kind of photos you want to get.
If successful, it will return a random image dictionary.
img = unsplash.search('mountains') #=> dict
The image dictionary object has two keys: The url of the image, and the author's instagram username.
So if you simply want to get a random image matching the query just do
img['img']
Metadata
Release files for unsplash-search 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unsplash_search-0.2.0.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unsplash_search-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 kB
Release files / unsplash_search-0.2.0.tar.gz
| Download URL | unsplash_search-0.2.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
508c5cff02f47b617ae1ff217add69c5fcd1cc1f1d51a90747cc829ce3d23124
|
|
BLAKE2b-256 checksum How to use checksums |
27729d62718973074ec88999647f97667a267aab7344c1522e39fe38a80a324e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
|
Release files / unsplash_search-0.2.0-py3-none-any.whl
| Download URL | unsplash_search-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
489c88cda4b5826941b96f1ed0373853b944e7abeb7e8036f14ae97b2894006f
|
|
BLAKE2b-256 checksum How to use checksums |
8650e063c9987f990bd977a692a8c139b7451b9cc63f68fafb88a84d7938b81c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
|