Installing the Mozilla Firefox command line to clean selenium

Hi, I have a scraper that runs locally, but when I tried to launch it using a Vagrant machine on a Linux AWS EC2 environment, I ran into the following problem.

When I tested it by running Linux, I was able to download linux directly with Firebug, and then run my Selenium web editor. In this case, I am writing a file with the necessary settings. However, I am having problems due to the inability to install firefox directly from the command line (along with firebug).

Here is what my working error looks like (it works fine on my local machine with firefox installed and on Linux with it installed):

[worker] " Please specify the firefox binary location or install firefox") [worker] RuntimeError: Could not find firefox in your system PATH. Please specify the firefox binary location or install firefox 

I am currently running something like this to create the right development environment. I thought I could use Mozmill to recreate firefox. Has anyone encountered / solved this?

  • sudo easy_install pip
  • sudo pip install selenium
  • sudo pip install mozmill

I need a command line installation of Firefox and Firebug. Thanks!

PROGRESS:

I'm using sudo apt-get install firefox right now, which I think might work. I cannot really test it without earning firebug and net export as well. I tried sudo apt-get install firebug but cannot find it. They say that it works here: http://www.daveshuck.com/2008/05/06/firebug-with-firefox-3-in-ubuntu-hardy-heron/ However, this does not work for me?

+6
source share
1 answer

Apt-get is a package manager, but apparently it is not installed to the taste of Linux that you use. A quick google for the “AWS EC2 Package Manager” tells me that the flavor of Amazon Linux uses the yum package manager, so “yum install firefox” should get you there. I'm not sure if Firebug can be installed in the same way, though ...

+3
source

Source: https://habr.com/ru/post/974331/


All Articles