Search for Unsplash images and upload to the Wagtail image library.
This package uses the python-unsplash API wrapper:
Install using pip:
pip install wagtail-unsplash
After installing the package, add wagtail_unsplash
to installed apps in your settings file:
# settings.py
INSTALLED_APPS = [
...
'wagtail_unsplash',
...
]
and add the API credentials:
# settings.py
WAGTAIL_UNSPLASH = {
"CLIENT_ID": "",
"CLIENT_SECRET": ""
}
You can get the needed information by creating an application at https://unsplash.com/developers