简体   繁体   中英

Flickr image caching with Python

My web application displays photos from a Flickr set. I'm using a Python Flickr API to gather information about my photos. I can cache the Flickr API call easily; however, I'm not sure what the best approach would be to cache the images locally as well. Is there an existing solution for this, or do I need to build my own?

如果您在Web应用程序中使用django,请尝试https://github.com/sorl/sorl-thumbnail

There is no such caching implemented in the Python Flickr API library. It's also not always allowed to do such a thing, as you'd be copying images from the Flickr servers, and distributing them from your own website. If an image is marked "all rights reserved", you don't have the right to do that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM