I've been trying to scrape a publicly-shared photo album I have on Google Photos: sharing the album provides a link along the format of photos.app.goo.gl/{SOME_ID}. The goal is to be able to retrieve the individual photo URLs (the URLs that don't expire, following the format lh3.googleusercontent.com and which can then be embedded onto any other website within an tag).
I would like to do this in Google Apps Script and have tried the following:
var response = UrlFetchApp.fetch("https://photos.app.goo.gl/{SOME_ID}");
Logger.log(response.getContentText());
However, the response doesn't display any of the images as if the page would instead need to be loaded some more, even though I'm testing this on an album with just 2 photos. If I inspect the page manually, I can clearly see the images + image links along the lh3.googleusercontent.com format. What should I change to my fetch request?
I've seen other implementations (outside of Apps Script) using Axios that managed to get the URLs I want, but haven't found a way of importing the Axios library into Apps Script.