Skip to content

lusk70/selenium-gcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selenium-gcloud

Use Command

mkdir -p bin/
curl -SL https://github.com/adieuadieu/serverless-chrome/releases/download/v1.0.0-37/stable-headless-chromium-amazonlinux-2017-03.zip > headless-chromium.zip
unzip headless-chromium.zip -d bin/
rm headless-chromium.zip
curl -SL https://chromedriver.storage.googleapis.com/2.37/chromedriver_linux64.zip > chromedriver.zip
unzip chromedriver.zip -d bin/
rm chromedriver.zip
gcloud functions deploy crawler \
--gen2 \
--region asia-northeast1 \
--runtime python39 \
--allow-unauthenticated \
--trigger-http \
--memory 512MB \
--timeout 540s \

参考記事

https://zenn.dev/kenghaya/articles/bad86052e475e8

https://cloud.google.com/sdk/gcloud/reference/functions/deploy?hl=ja

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages