Google Firebase 函数:webdriver.io 获取 html 网站的源代码

Google Firebase Functions: webdriver.io get source code of a html-website

上周末我一直在尝试使用 Cloud Functions for Firebase 通过 webdriver.io 获取网站的源代码。

我的代码在我的本地机器上执行时确实有效,但是当我尝试 运行 带有 firebase 函数的代码时它不起作用。
我有一个 Spark-Account(免费),我猜想无法使用 Spark-Account 获取网站的信息,因为 "Outbound networking" 设置为 "Google services only"。 但我不确定,也许有可能通过 Google Firebase 函数执行这些类型的操作。

也许这里有人对这种操作更有经验,可以告诉我让它工作的诀窍。

从 Cloud Functions for Firebase 访问非 Google 网站和服务仅适用于付费计划中的项目。 free/spark 计划中的项目只能访问 Google 托管服务。

另外:

  • Firebase: Am I only allowed to use third party functions if I pay for a plan?
  • Use firebase cloud function to send POST request to non-google server