Tryolabs logo
Tryolabs logo
Blog

Python Simple Getty wrapper released!
Thu, Mar 21, 2013

https://d33wubrfki0l68.cloudfront.net/0d94709e7506e0737e79db1618ab1782848d69d4/22e9c/_next/static/image/assets/blog/placeholder-social.0005dcf08bf363f8f2bb9b91702050d8.png
Authors
logo

Mauro de Carvalho

Share
twitter
linkedin
facebook

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!

Tryolabs logo
Solutions
twitter
linkedin
github
instagram
youtube
© 2021. All rights reserved.