Unsplash Image Search
Steps to follow to do your first search in a given Colab session:
Click this link.
Sign into your Google account if you’re not already signed in. Click the “S” button in the upper right to do this. Note: Being signed into a Google account has privacy ramifications, such as your Google search history being recorded in your Google account.
Click somewhere (except the triangle) in the cell with the line that reads ‘search_query = “Two dogs playing in the snow”‘.
Click menu item “Runtime->Run before”. Wait until execution stops.
Find the line that reads (or initially read) ‘search_query = “Two dogs playing in the snow”‘. Change “Two dogs playing in the snow” to your desired search query (include the quotes); example: ‘search_query = “A clock with gold-colored numbers on a black background”‘.
(Optional) Find the line that reads (or initially read) ‘search_unslash(search_query, photo_features, photo_ids, 3)’. Change 3 in that line to the number of search results that you want.
Click the triangle to the left of the line that initially read ‘search_query = “Two dogs playing in the snow”‘. Wait for the search results.
Steps to follow to do more searches in a given Colab session: Do steps 5 to 7 above.
After you’re done with your Google Colab session, optionally log out of your Google account due to the privacy ramifications of being logged into a Google account.
Update: Text from the notebook:
WARNING ⚠️ Since many people are currently using the notebook, it seems that the Unsplash API limit is hit from time to time (even with caching in the proxy). I applied for production status which will solve the problem. In the meantime, you can just try when a new hour starts. Alternatively, you can use your own Unsplash API key
I am not affiliated with this project or its developer.
Example of a search result for query “A clock with gold-colored numbers on a black background”: