Back

Chrome Driver Appwrite Function

  • 0
  • Functions
Infinil
17 Aug, 2023, 11:08

I am trying to use selenium in a cloud function but i am unable to get it working because of the chrome driver installation..

TL;DR
The user is attempting to use selenium in a cloud function but is having trouble installing the chrome driver. They tried using Webdriver Manager but it didn't work. They later decided to use requests and user agents instead. It's unclear if they need to install more dependencies. They also mention using a headless option. They ask if they should use the 'userlib/chromedriver' path if they create a tar.gz of the folder.
Infinil
17 Aug, 2023, 11:09

if i create a tar.gz of this folder then should i use userlib/chromedriver path

Infinil
17 Aug, 2023, 11:25

btw its a headless option type

Infinil
17 Aug, 2023, 11:52

but ig i will also need to install more dependencies?

Infinil
18 Aug, 2023, 03:12

eitherway i decided to not use selenium or web driver related stuff since it got solved with requests + user agents

ideclon
18 Aug, 2023, 07:31

Looks like you’re using the Windows chromedriver… that’s not going to work in a cloud function

Infinil
18 Aug, 2023, 07:39

yes true

Infinil
18 Aug, 2023, 07:39

locally i am testing on windows

Infinil
18 Aug, 2023, 07:40

i tried various approaches like using this Webdriver Manager for installing chrome driver while running the script

Infinil
18 Aug, 2023, 07:41

but ig on a linux vps i will also have to perform other dependency installations so i just ditched it at the end

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more