{"repo":"vifreefly/rubium","free":true,"listed":false,"github":"https://github.com/vifreefly/rubium","clone":"git clone https://github.com/vifreefly/rubium.git","description":"Antidetect Headless Chrome Browser for Ruby Web Scraping and Automation","language":"Ruby","stars":70,"topics":["headless","chromium","ruby","capybara","scraping","automation","antidetect-browser","crawler","playwright","puppeteer"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Rubium Description Rubium is a lightweight Ruby API for headless antidetect Chrome browser automation. It provides essential web navigation methods in just 300 lines of code — no Selenium or heavy dependencies required. Use it as a simple alternative to Capybara/Puppeteer/Playwright for web scraping and browser automation tasks: There are some options which you can provide while creating browser instance: Note that for options user agent and proxy server you can provide lambda object instead of string: What for: Chrome doesn't provide an API to change proxies on the fly (after browser has been started). It is possible to set proxy while starting Chrome instance by providing CLI argument only. On the other hand, Rubium allows you to automatically restart browser ( restart after option) after N processed requests. On each restart, if options user agent and/or proxy server has lambda format, then lambda will be called to fetch fresh value. Thus it's possible to rotate proxies/user-agents without any much effort. You can provide custom Chrome binary path this way: Common Chrome path example for MacOS: Installation Rubium tested with 3.1.0 Ruby version and up. Contribution Sure, feel free to fork and add new functionality. License The gem is available as open source under the terms of the MIT License.","default_branch":null,"files":null,"tree":[],"storefront":"/r/vifreefly","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vifreefly/rubium/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."}