I need to make use of Firefox for web scraping. I am using WWW::Mechanize::Firefox. So I will need to install Firefox and Mozrepl however I am installing on a vps that does not have a GUI desktop environment and I am running into problems that Firefox requires a GUI/graphics driver.
The perl script will be run with a cronjob.
How can I do this?
From the documentation (WWW::Mechanize::Firefox::FAQ):
So yes, you need to have an X session available. Enable XForwarding, with ssh, so you can view the remote GUI desktop on your local machine. Then install Firefox via package management, then install MozRepel within Firefox. Once this is done ensure the MozRepel plugin is enabeled. Then use cpan to install the rest: