vifreefly / kimuraframework

Kimurai is a modern web scraping framework written in Ruby which works out of box with Headless Chromium/Firefox, PhantomJS, or simple HTTP requests and allows to scrape and interact with JavaScript rendered websites
MIT License
1.01k stars 155 forks source link

Setting desired_capabilities #45

Open givigier opened 4 years ago

givigier commented 4 years ago

I'm running a crawler with the selenium_firefox engine but I got the following exception Selenium::WebDriver::Error::InsecureCertificateError:. As I see on this link https://github.com/SeleniumHQ/selenium/wiki/Ruby-Bindings#ssl-certificates it's something I need to configure on firefox.

Is it possible to set the option desired_capabilities through Kimurai?

givigier commented 4 years ago

@vifreefly Hi, I created this PR https://github.com/vifreefly/kimuraframework/pull/46 just as note about how I fixed the issue. I would like to know how you think is the best way to add this option and of course, to know if makes sense to add this option to the project.

Thank you.