Successfully using firefox on a headless server
Hello all
I am running a VM with google cloud platform. I need to run splinter (a wrapper for python selenium) to do some webscrapping on these vms, but in order for this to work I need to download firefox on each of these headless servers. I have managed to install firefox and xvfb so I can use it headlessly.
Yet , whenever I try to run firefox (xvfb-run -a firefox)
I get the following error: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory Couldn't load XPCOM.
Does this have to do with my installation of firefox or the fact that I am running headless?
How do I fix this problem?
Toutes les réponses (1)
That's a great question! It looks like you might have the wrong package installed version 1 instead of 2: See: *http://scraping.pro/use-headless-firefox-scraping-linux/