Keeping up with our efforts to be an active part of the open source community, we are pleased to announce the public release of our Simple Getty wrapper.
Python Simple Getty is a basic wrapper to the extensive Getty Images Connect API. In its current state it does not fully implement Connect, but it works really well in the most common use case: Search, get details and finally buy a set of images.
You can get the code in our github.
We recommend that you read the README, but once you have the code, finding and downloading an image is as easy as:
from getty import Session # Just log in, we will keep the session for you s = Session('system_id', 'system_pass', 'user_name', 'user_pass') s.search('Trendy topic here', items=10, from_item=1) s.buy(ID_to_buy, 1024 * 1024) # We get the download link here !
Simple as that!
We encourage any of you to fork us and extend the wrapper as much as you’d like. Who knows? Maybe in the future we can get Connect fully implemented!
Like what you read?
Subscribe to our newsletter and get updates on Deep Learning, NLP, Computer Vision & Python.