I am defining a Cloud Function on GCP for scraping a website in Python.
I am starting simple by defining a function that simply opens the webdriver:
from selenium import webdriver
def launch_search(request):
# Starting a webdriver
driver = webdriver.Chrome()
return 'Success'
This function doesn't work (Error: could not handle the request when I trigger it), probably because the Chrome Driver is not installed on my remote machine. Therefore:
- How can I install it?
- Or can I scrape a webpage using Selenium, without opening the page with a webdriver?