google-apps-script

Using Apps Script to scrape javascript rendered web page

邮差的信 提交于 2020-11-28 03:45:30
问题 I am struggling to put a script together to handle the scraping of a javascript rendered web page through Apps Script. Found this How to scrape Javascript rendered websites using Javascript? here, but I don't know how to put this together. Such as load puppeteer. Any help would be appreciated. 回答1: You can try to scrape the initial HTML, since actually scraping the rendered HTML is extremely hard to do, you'd have to use a headless browser. There is this library: https://github.com

Using Apps Script to scrape javascript rendered web page

ぃ、小莉子 提交于 2020-11-28 03:37:01
问题 I am struggling to put a script together to handle the scraping of a javascript rendered web page through Apps Script. Found this How to scrape Javascript rendered websites using Javascript? here, but I don't know how to put this together. Such as load puppeteer. Any help would be appreciated. 回答1: You can try to scrape the initial HTML, since actually scraping the rendered HTML is extremely hard to do, you'd have to use a headless browser. There is this library: https://github.com

Jdbc connection error from Google Apps Script

好久不见. 提交于 2020-11-27 00:30:17
问题 I have created a Google Cloud Project MySQL database to use in conjunction with the Jdbc service provided by Google Apps Script. Everything went as planned with the connection. I am basically connecting as it does in the docs. var conn = Jdbc.getCloudSqlConnection(dbUrl, user, userPwd); I shared the file with another account and all of a sudden I am seeing a red error saying: 'Failed to establish a database connection. Check connection string, username and password.' Nothing changed in the

Jdbc connection error from Google Apps Script

自闭症网瘾萝莉.ら 提交于 2020-11-27 00:28:47
问题 I have created a Google Cloud Project MySQL database to use in conjunction with the Jdbc service provided by Google Apps Script. Everything went as planned with the connection. I am basically connecting as it does in the docs. var conn = Jdbc.getCloudSqlConnection(dbUrl, user, userPwd); I shared the file with another account and all of a sudden I am seeing a red error saying: 'Failed to establish a database connection. Check connection string, username and password.' Nothing changed in the

Jdbc connection error from Google Apps Script

南笙酒味 提交于 2020-11-27 00:28:43
问题 I have created a Google Cloud Project MySQL database to use in conjunction with the Jdbc service provided by Google Apps Script. Everything went as planned with the connection. I am basically connecting as it does in the docs. var conn = Jdbc.getCloudSqlConnection(dbUrl, user, userPwd); I shared the file with another account and all of a sudden I am seeing a red error saying: 'Failed to establish a database connection. Check connection string, username and password.' Nothing changed in the

Jdbc connection error from Google Apps Script

蹲街弑〆低调 提交于 2020-11-27 00:26:24
问题 I have created a Google Cloud Project MySQL database to use in conjunction with the Jdbc service provided by Google Apps Script. Everything went as planned with the connection. I am basically connecting as it does in the docs. var conn = Jdbc.getCloudSqlConnection(dbUrl, user, userPwd); I shared the file with another account and all of a sudden I am seeing a red error saying: 'Failed to establish a database connection. Check connection string, username and password.' Nothing changed in the

Modify Code - Copy Range to another Spreadsheet Google Sheets

為{幸葍}努か 提交于 2020-11-25 03:50:05
问题 The code below copies range and moves to next Spreadsheet in same workbook called "Topup Required". I would like it to send this data to another spreadsheet inside another workbook instead. function onEdit(event) { // assumes source data in sheet named PrepSheet // target sheet of move to named TOP UP NEEDED // getColumn with check-boxes is currently set to column I var ss = SpreadsheetApp.getActiveSpreadsheet(); var s = event.source.getActiveSheet(); var r = event.source.getActiveRange(); if

Function not executing in google script HTML service

我是研究僧i 提交于 2020-11-25 03:39:23
问题 I am coding a tool for myself and my classmates that will create a google doc and email it to the selected teacher, using all fields that are filled in and filling all those that are not with the defaults for the selected subject, say language arts, but the function that takes the selected information and uses it to send the email is not executing. I've checked the executions for the project, and the function, customDoc() , has not once been executed. I suspect it's a problem with my HTML, as

Google Apps Script remove warning banner

风格不统一 提交于 2020-11-24 16:40:19
问题 I am putting a GeoChart on my Google Site using a Google Apps Script. Viewing the page when I am not logged into my google account shows a grey banner at the top with states: "This application was created by another user, not by Google." See it here. Is there a way to remove this banner or move it to the bottom of the page so it looks better? I found a short discussion here (see fourth comment), but this did not work with the HtmlOutput object I am using in the doGet function doGet() { return

Google Apps Script remove warning banner

我们两清 提交于 2020-11-24 16:22:09
问题 I am putting a GeoChart on my Google Site using a Google Apps Script. Viewing the page when I am not logged into my google account shows a grey banner at the top with states: "This application was created by another user, not by Google." See it here. Is there a way to remove this banner or move it to the bottom of the page so it looks better? I found a short discussion here (see fourth comment), but this did not work with the HtmlOutput object I am using in the doGet function doGet() { return