Hey everyone,
I'm currently working on a little project and I’m looking for an API that provides random pictures. Ideally, it would be free (or have a generous free tier), and it doesn’t matter too much what kind of pictures – landscapes, abstract, animals, anything works.
Any recommendations would be super appreciated. Thanks in advance!
Videos
I'm not a coder, but I can understand code. I want to create an API for an Inky Frame, to be able to quickly add/ remove photos from the random carousel.
On the Inky Frame side, there are already examples that I can use to connect and get a photo from an API.
I'm missing the server part... has any one of you done something similar? Is there any easy way of coding this/ maintaining it? (bonus question, if the approach also allows for re-sizing the images before it sends them over to the Inky Frame for that extra automation juice)
Thank you!!
» pip install random-cat
here i used the unsplash API to get a random image and then save it to the system
from urllib.request import urlopen
from PIL import Image
img = Image.open(urlopen('https://source.unsplash.com/random'))
img.save('image.png')