{"repo":"YusukeIwaki/puppeteer-ruby","free":true,"listed":false,"github":"https://github.com/YusukeIwaki/puppeteer-ruby","clone":"git clone https://github.com/YusukeIwaki/puppeteer-ruby.git","description":"A Ruby port of Puppeteer","language":"Ruby","stars":328,"topics":["puppeteer","ruby"],"license":"Apache-2.0","category":"scrapers-browser-automation","readme_excerpt":"[!IMPORTANT] - This library now requires Ruby 3.2 or later . - Firefox support has been moved to puppeteer-bidi. - For older versions, please refer to the ref-2025 tag. Puppeteer in Ruby A Ruby port of puppeteer. REMARK: This Gem covers just a part of Puppeteer APIs. See API Coverage list for detail. Feedbacks and feature requests are welcome :) Getting Started Installation Add this line to your application's Gemfile: And then execute: $ bundle install Capture a site NOTE: require 'puppeteer-ruby' is not necessary in Rails. Simple scraping Evaluate JavaScript More usage examples can be found here :whale: Running in Docker Following packages are required. - Google Chrome or Chromium - In Debian-based images, google-chrome-stable - In Alpine-based images, chromium Also, CJK font will be required for Chinese, Japanese, Korean sites. References - Puppeteer official README: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-puppeteer-in-docker - puppeteer-ruby example: https://github.com/YusukeIwaki/puppeteer-ruby-example/tree/master/docker chromium :bulb: Collaboration with Selenium or Capybara It is really remarkable that we can use puppeteer functions in existing Selenium or Capybara codes, with a few configuration in advance. The detailed step of configuration can be found here. :bulb: Use Puppeteer methods simply without Capybara::DSL We can also use puppeteer-ruby as it is without Capybara DSL. When you want to just test a Rails application simp","default_branch":null,"files":null,"tree":[],"storefront":"/r/YusukeIwaki","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/YusukeIwaki/puppeteer-ruby/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}