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

Using the last argument as keyword parameters is deprecated : using ruby 3.0.0 #56

Open graial opened 3 years ago

graial commented 3 years ago

I've recorded the fix/patch in this issue:

https://github.com/vifreefly/rbcat/issues/1

Did it this way, cuz I'm not sure how to submit a pull request

estebansa19 commented 3 years ago

There is a way to fix this bug and it is to not use the colorized logger, simply adding this config into a Kimurai initializer should be enough:

Kimurai.configure do |config|
  config.colorize_logger = false
end

Reference link

gatorjuice commented 3 years ago
Kimurai.configure do |config|
  config.colorize_logger = false
end

@estebansa19 Thank you for this!