Open doronbehar opened 4 years ago
Hi,
because (I think) whatever that's in
#main-title
is updated via JS
That's right. It's a static HTML page hosted here on GitHub, you'll always get this file. The data is retrieved dynamically from a Firebase Firestore database. The Firebase configuration can be found here.
I was wondering whether it'll be possible to workaround this issue somehow, or whether there's perhaps a more reliable way to access this data.
You can try querying the Firestore database, but I'm not sure how easy is it to do from a Google Apps script. Googling for it led me to this project - FirestoreGoogleAppsScript, perhaps it can help.
Another option you can try is querying the Drive directly. I'm not sure about the available API for it, but perhaps Google provides a simple API for querying folders and files.
HI,
As a maintainer of my faculty's Google Drive, I'd like to keep track of what tests we have scans for and which we don't. We maintain a Google spreadsheet in which we write whether we have at least 1 scan for every course by it's ID. I tried to add a custom function (via a Google Apps script) with something along the lines of this:
But, this doesn't work as expected, because (I think) whatever that's in
#main-title
is updated via JS after the content is loaded, and not right in the initial content request.You can reproduce this with
curl
andpup
and this command:If you open that URL in your browser the title will be
But the command will print:
And not:
Anyway, I was wondering whether it'll be possible to workaround this issue somehow, or whether there's perhaps a more reliable way to access this data.
Regards.