Particularities
🤔 An API is already a technical concept. So far, your reading of this page might not make a lot of sense. So, how can anyone get baboon images without Googling it ? Only one solution : a visualization website !
🧱 Following the creation of the Baboon API, I used the Vue framework and the TypeScript language to create a small site showcasing the capabilities of the Baboon API. It allowed me to get back into Vue and experiment with an original design.
📡 An API is a server-side program. The one I created scans a folder full of photos and returns one or more signed URLs. However, the interest of such a project would have been kinda limited if the directory contained only 5 to 10 images... In this type of application, several hundred are usually available. Since I wasn't going to spend days scrolling the internet to save baboon photos, I decided to step into the world of web scraping !
🤖 With the Puppeteer library, it's indeed possible to automate this task in JavaScript. After spending a little time setting it up, I was able to launch a bot and watch it do all the dirty work in a few seconds !