简体   繁体   中英

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

Last weekend I have been trying to use Cloud Functions for Firebase to get the source code of a website via webdriver.io.

My code did work when I executed it on my local machine, but when I was trying to run the code with firebase functions it didn't work.
I have a Spark-Account (free) and I guess it is not possible to get information of a website with the a Spark-Account because "Outbound networking" is set to "Google services only". But I am not sure and maybe there is a possibility to do these kinds of operations via Google Firebase Functions.

Maybe someone here as more experience with this kind of operations and can tell me the trick to get it working.

Access to non-Google web sites and services from Cloud Functions for Firebase is only possible for projects on a paid plan. Project on the free/spark plan can only access Google-hosted services.

Also:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM